diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-04-21 22:42:21 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-04-21 22:42:21 +0600 |
commit | 6de5dbafeebd2c54670e4cbf2833f9f10f3c2032 (patch) | |
tree | 7b8f82001c6e5c46b10d1ad155a40e855489da3e /youtube_dl/extractor/youtube.py | |
parent | 60bf45c80d377a38b00b9ec1426c4cc1d9003742 (diff) |
[youtube:channel] Make `extract_videos_from_page` static
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r-- | youtube_dl/extractor/youtube.py | 3 |
1 files changed, 2 insertions, 1 deletions
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<title>[^"]+)"[^>]+)?href="/watch\?v=(?P<id>[0-9A-Za-z_-]+)&?', page): |