From: Sergey M․ Date: Tue, 21 Apr 2015 16:42:21 +0000 (+0600) Subject: [youtube:channel] Make `extract_videos_from_page` static X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=6de5dbafeebd2c54670e4cbf2833f9f10f3c2032;p=youtube-dl [youtube:channel] Make `extract_videos_from_page` static --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index 1469b932f..8bf54931c 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -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[^"]+)"[^>]+)?href="/watch\?v=(?P<id>[0-9A-Za-z_-]+)&?', page):