diff options
author | Zenon Mousmoulas <zmousm@users.noreply.github.com> | 2022-03-04 23:52:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-04 13:52:48 -0800 |
commit | 27231526ae4dd3b0619d25a2e9d73186c1197c2f (patch) | |
tree | cbaff7cb8e0f5b877689b35264037e71f091ab83 /yt_dlp/extractor/common.py | |
parent | 50e93e03a7ca6ae35a319ea310104f7d6d91eee3 (diff) | |
download | hypervideo-pre-27231526ae4dd3b0619d25a2e9d73186c1197c2f.tar.lz hypervideo-pre-27231526ae4dd3b0619d25a2e9d73186c1197c2f.tar.xz hypervideo-pre-27231526ae4dd3b0619d25a2e9d73186c1197c2f.zip |
[ant1newsgr] Add extractor (#1982)
Authored by: zmousm
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index dbf5ef8d4..f86e7cb3e 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -1140,8 +1140,8 @@ class InfoExtractor(object): 'url': url, } - def playlist_from_matches(self, matches, playlist_id=None, playlist_title=None, getter=None, ie=None, **kwargs): - urls = (self.url_result(self._proto_relative_url(m), ie) + def playlist_from_matches(self, matches, playlist_id=None, playlist_title=None, getter=None, ie=None, video_kwargs=None, **kwargs): + urls = (self.url_result(self._proto_relative_url(m), ie, **(video_kwargs or {})) for m in orderedSet(map(getter, matches) if getter else matches)) return self.playlist_result(urls, playlist_id, playlist_title, **kwargs) |