1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-11-16 06:15:46 +00:00

.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(
lambda u: cls.url_result(u, cls.ie_key()),
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):
duration = traverse_obj(delivery_info, ('Delivery', 'Duration'), expected_type=float)