From 436ccba53a1a5630aeadebe22bb61c0ca02f93ec Mon Sep 17 00:00:00 2001 From: ilainftw <20617810+ilainftw@users.noreply.github.com> Date: Tue, 1 May 2018 15:24:53 +0100 Subject: [PATCH] [itv] Fixed fallback from rtmp to hls streams (closes #16253) --- youtube_dl/extractor/itv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/itv.py b/youtube_dl/extractor/itv.py index 18a7d7f8c..da9f2f853 100644 --- a/youtube_dl/extractor/itv.py +++ b/youtube_dl/extractor/itv.py @@ -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({