diff options
author | Sergey M․ <dstftw@gmail.com> | 2017-07-16 04:33:14 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2017-07-16 04:33:14 +0700 |
commit | 749ca5eced0b9a8ed1ef79f4ee80908e0ac242c8 (patch) | |
tree | 6a1a5dc69170daf4d63f1f7e47ff69f3349bfafe /youtube_dl/extractor/common.py | |
parent | 3f59b0154a8b6dc85425edfbb3dfdc64f41a6ecb (diff) |
[extractor/common] Fix playlist_from_matches
Diffstat (limited to 'youtube_dl/extractor/common.py')
-rw-r--r-- | youtube_dl/extractor/common.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index daa10885f..748b4d59f 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -730,12 +730,12 @@ class InfoExtractor(object): video_info['title'] = video_title return video_info - def playlist_from_matches(self, matches, video_id, video_title, getter=None, ie=None): - urlrs = orderedSet( + def playlist_from_matches(self, matches, playlist_id=None, playlist_title=None, getter=None, ie=None): + urls = orderedSet( self.url_result(self._proto_relative_url(getter(m) if getter else m), ie) for m in matches) return self.playlist_result( - urlrs, playlist_id=video_id, playlist_title=video_title) + urls, playlist_id=playlist_id, playlist_title=playlist_title) @staticmethod def playlist_result(entries, playlist_id=None, playlist_title=None, playlist_description=None): |