mirror of
https://github.com/soimort/you-get.git
synced 2025-03-13 11:24:02 +03:00
Merge branch 'junzh0u-youku-multi-page-playlist' into develop
This commit is contained in:
commit
d2ebe7690d
@ -74,6 +74,11 @@ class Youku(VideoExtractor):
|
|||||||
|
|
||||||
video_page = get_content('http://www.youku.com/playlist_show/id_%s' % playlist_id)
|
video_page = get_content('http://www.youku.com/playlist_show/id_%s' % playlist_id)
|
||||||
videos = set(re.findall(r'href="(http://v\.youku\.com/[^?"]+)', video_page))
|
videos = set(re.findall(r'href="(http://v\.youku\.com/[^?"]+)', video_page))
|
||||||
|
|
||||||
|
for extra_page_url in set(re.findall('href="(http://www\.youku\.com/playlist_show/id_%s_[^?"]+)' % playlist_id, video_page)):
|
||||||
|
extra_page = get_content(extra_page_url)
|
||||||
|
videos |= set(re.findall(r'href="(http://v\.youku\.com/[^?"]+)', extra_page))
|
||||||
|
|
||||||
self.title = re.search(r'<meta name="title" content="([^"]+)"', video_page).group(1)
|
self.title = re.search(r'<meta name="title" content="([^"]+)"', video_page).group(1)
|
||||||
self.p_playlist()
|
self.p_playlist()
|
||||||
for video in videos:
|
for video in videos:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user