[ITV] Fix extractor (#1776)

Closes #1775
Authored by: staubichsauger
pull/1800/head
Tim 2021-11-24 11:08:58 +01:00 zatwierdzone przez GitHub
rodzic fec41d17a5
commit da27aeea5c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -147,7 +147,7 @@ class ITVIE(InfoExtractor):
platform_tag_video, featureset_video = next(
((platform_tag, featureset)
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))
if not platform_tag_video or not featureset_video:
raise ExtractorError('No downloads available', expected=True, video_id=video_id)