aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-04-21 22:42:21 +0600
committerSergey M․ <dstftw@gmail.com>2015-04-21 22:42:21 +0600
commit6de5dbafeebd2c54670e4cbf2833f9f10f3c2032 (patch)
tree7b8f82001c6e5c46b10d1ad155a40e855489da3e
parent60bf45c80d377a38b00b9ec1426c4cc1d9003742 (diff)
[youtube:channel] Make `extract_videos_from_page` static
-rw-r--r--youtube_dl/extractor/youtube.py3
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):