aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-05-01 22:46:06 +0700
committerSergey M․ <dstftw@gmail.com>2018-05-01 22:48:08 +0700
commitc18142da6e0e99a7b4c9ab488ddb285ad1e8dad9 (patch)
treefa78e7091ed2850f8af9940a8b3f01444e47c5ab /youtube_dl
parentcc42941390b547ba950b4e76f4950be801f96134 (diff)
[itv] Improve extraction (closes #16253)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/itv.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/youtube_dl/extractor/itv.py b/youtube_dl/extractor/itv.py
index 18a7d7f8c..457b424a2 100644
--- a/youtube_dl/extractor/itv.py
+++ b/youtube_dl/extractor/itv.py
@@ -41,6 +41,14 @@ class ITVIE(InfoExtractor):
# unavailable via data-playlist-url
'url': 'https://www.itv.com/hub/through-the-keyhole/2a2271a0033',
'only_matching': True,
+ }, {
+ # InvalidVodcrid
+ 'url': 'https://www.itv.com/hub/james-martins-saturday-morning/2a5159a0034',
+ 'only_matching': True,
+ }, {
+ # ContentUnavailable
+ 'url': 'https://www.itv.com/hub/whos-doing-the-dishes/2a2898a0024',
+ 'only_matching': True,
}]
def _real_extract(self, url):
@@ -127,7 +135,8 @@ class ITVIE(InfoExtractor):
if fault_code == 'InvalidGeoRegion':
self.raise_geo_restricted(
msg=fault_string, countries=self._GEO_COUNTRIES)
- elif fault_code != 'InvalidEntity':
+ elif fault_code not in (
+ 'InvalidEntity', 'InvalidVodcrid', 'ContentUnavailable'):
raise ExtractorError(
'%s said: %s' % (self.IE_NAME, fault_string), expected=True)
info.update({