projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60bf45c
)
[youtube:channel] Make `extract_videos_from_page` static
author
Sergey M․
<dstftw@gmail.com>
Tue, 21 Apr 2015 16:42:21 +0000
(22:42 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 21 Apr 2015 16:42:21 +0000
(22:42 +0600)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 1469b932fe1686a1dfa5a1a61afbb5896cdb317d..8bf54931c081f66b2bb78912d4835219f8560b4a 100644
(file)
--- 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):