]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[youtube:channel] Make `extract_videos_from_page` static
authorSergey M․ <dstftw@gmail.com>
Tue, 21 Apr 2015 16:42:21 +0000 (22:42 +0600)
committerSergey M․ <dstftw@gmail.com>
Tue, 21 Apr 2015 16:42:21 +0000 (22:42 +0600)
youtube_dl/extractor/youtube.py

index 1469b932fe1686a1dfa5a1a61afbb5896cdb317d..8bf54931c081f66b2bb78912d4835219f8560b4a 100644 (file)
@@ -1369,7 +1369,8 @@ class YoutubeChannelIE(InfoExtractor):
         }
     }]
 
-    def extract_videos_from_page(self, page):
+    @staticmethod
+    def extract_videos_from_page(page):
         ids_in_page = []
         titles_in_page = []
         for mobj in re.finditer(r'(?:title="(?P<title>[^"]+)"[^>]+)?href="/watch\?v=(?P<id>[0-9A-Za-z_-]+)&?', page):