aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-01-02 20:54:30 +0600
committerSergey M․ <dstftw@gmail.com>2015-01-02 20:54:30 +0600
commit8399267671938f072b9c6f6b2cbd2fa315b80a23 (patch)
treeb055e1968c0d0e89e77f1bb94387fe066406fc22 /youtube_dl
parentdb546cf87fa4206e55f66ddcc041dcd12fe708c8 (diff)
[generic] Make getter None by default
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/generic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index ce1e77daa..4bb7581ac 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -699,9 +699,9 @@ class GenericIE(InfoExtractor):
r'^(?:https?://)?([^/]*)/.*', url, 'video uploader')
# Helper method
- def _playlist_from_matches(matches, getter, ie=None):
+ def _playlist_from_matches(matches, getter=None, ie=None):
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)
return self.playlist_result(
urlrs, playlist_id=video_id, playlist_title=video_title)