]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[generic] Make getter None by default
authorSergey M․ <dstftw@gmail.com>
Fri, 2 Jan 2015 14:54:30 +0000 (20:54 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 2 Jan 2015 14:54:30 +0000 (20:54 +0600)
youtube_dl/extractor/generic.py

index ce1e77daad5607e0ac91a1004b86c7620d6a455f..4bb7581ace594dd11e7f4abd2bea0143dd13b5e0 100644 (file)
@@ -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)