.chain(*iterables)

This commit is contained in:
dirkf 2022-11-14 16:37:05 +00:00 committed by GitHub
parent 2a47a5a3f9
commit a61abdaa68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,7 +287,7 @@ class PanoptoIE(PanoptoBaseIE):
return map( return map(
lambda u: cls.url_result(u, cls.ie_key()), lambda u: cls.url_result(u, cls.ie_key()),
orderedSet(m.group('url') for m in itertools.chain( orderedSet(m.group('url') for m in itertools.chain(
re.finditer(embed_re, webpage) for embed_re in cls._EMBED_REGEX))) *(re.finditer(embed_re, webpage) for embed_re in cls._EMBED_REGEX))))
def _mark_watched(self, base_url, video_id, delivery_info): def _mark_watched(self, base_url, video_id, delivery_info):
duration = traverse_obj(delivery_info, ('Delivery', 'Duration'), expected_type=float) duration = traverse_obj(delivery_info, ('Delivery', 'Duration'), expected_type=float)