Browse Source

[youtube:channel] Make `extract_videos_from_page` static

master
Sergey M․ 9 years ago
parent
commit
6de5dbafee
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/youtube.py

3
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 = [] ids_in_page = []
titles_in_page = [] titles_in_page = []
for mobj in re.finditer(r'(?:title="(?P<title>[^"]+)"[^>]+)?href="/watch\?v=(?P<id>[0-9A-Za-z_-]+)&?', page): for mobj in re.finditer(r'(?:title="(?P<title>[^"]+)"[^>]+)?href="/watch\?v=(?P<id>[0-9A-Za-z_-]+)&?', page):

Loading…
Cancel
Save