mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-25 19:47:09 -05:00
[generic] Make getter None by default
This commit is contained in:
parent
db546cf87f
commit
8399267671
@ -699,9 +699,9 @@ class GenericIE(InfoExtractor):
|
|||||||
r'^(?:https?://)?([^/]*)/.*', url, 'video uploader')
|
r'^(?:https?://)?([^/]*)/.*', url, 'video uploader')
|
||||||
|
|
||||||
# Helper method
|
# Helper method
|
||||||
def _playlist_from_matches(matches, getter, ie=None):
|
def _playlist_from_matches(matches, getter=None, ie=None):
|
||||||
urlrs = orderedSet(
|
urlrs = orderedSet(
|
||||||
self.url_result(self._proto_relative_url(getter(m)), ie)
|
self.url_result(self._proto_relative_url(getter(m) if getter else m), ie)
|
||||||
for m in matches)
|
for m in matches)
|
||||||
return self.playlist_result(
|
return self.playlist_result(
|
||||||
urlrs, playlist_id=video_id, playlist_title=video_title)
|
urlrs, playlist_id=video_id, playlist_title=video_title)
|
||||||
|
Loading…
Reference in New Issue
Block a user