[ITV] Fix extractor (#1776)

Closes #1775
Authored by: staubichsauger
This commit is contained in:
Tim 2021-11-24 11:08:58 +01:00 committed by GitHub
parent fec41d17a5
commit da27aeea5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -147,7 +147,7 @@ def _real_extract(self, url):
platform_tag_video, featureset_video = next( platform_tag_video, featureset_video = next(
((platform_tag, featureset) ((platform_tag, featureset)
for platform_tag, featuresets in reversed(list(variants.items())) for featureset in featuresets for platform_tag, featuresets in reversed(list(variants.items())) for featureset in featuresets
if try_get(featureset, lambda x: x[:2]) == ['hls', 'aes']), if set(try_get(featureset, lambda x: x[:2]) or []) == {'aes', 'hls'}),
(None, None)) (None, None))
if not platform_tag_video or not featureset_video: if not platform_tag_video or not featureset_video:
raise ExtractorError('No downloads available', expected=True, video_id=video_id) raise ExtractorError('No downloads available', expected=True, video_id=video_id)