[itv] Fixed fallback from rtmp to hls streams (closes #16253)

This commit is contained in:
ilainftw 2018-05-01 15:24:53 +01:00
parent cc42941390
commit 436ccba53a

View File

@ -127,7 +127,7 @@ class ITVIE(InfoExtractor):
if fault_code == 'InvalidGeoRegion':
self.raise_geo_restricted(
msg=fault_string, countries=self._GEO_COUNTRIES)
elif fault_code != 'InvalidEntity':
elif not re.match(r'(Content|Invalid)[A-z]', fault_code):
raise ExtractorError(
'%s said: %s' % (self.IE_NAME, fault_string), expected=True)
info.update({