mirror of
https://github.com/l1ving/youtube-dl
synced 2025-03-10 21:07:17 +08:00
[webofstories] capture playlist members by id attribute
This commit is contained in:
parent
64c4485151
commit
50a0d47bf6
@ -133,10 +133,10 @@ class WebOfStoriesPlaylistIE(InfoExtractor):
|
|||||||
webpage = self._download_webpage(url, playlist_id)
|
webpage = self._download_webpage(url, playlist_id)
|
||||||
|
|
||||||
entries = [
|
entries = [
|
||||||
self.url_result('http://www.webofstories.com/play/%s/%d' % (playlist_id, video_number), 'WebOfStories')
|
self.url_result('http://www.webofstories.com/play/%s/%s' % (playlist_id, video_number), 'WebOfStories')
|
||||||
for video_number in range(1, len(re.findall(r'class="playListItem\s+"', webpage)) + 2)
|
for video_number in range(1, len(re.findall(r'id="(\d+)"', webpage)) + 1)
|
||||||
]
|
]
|
||||||
|
print(entries[0])
|
||||||
title = self._search_regex(
|
title = self._search_regex(
|
||||||
r'<div id="speakerName">\s*<span>([^<]+)</span>',
|
r'<div id="speakerName">\s*<span>([^<]+)</span>',
|
||||||
webpage, 'speaker', default=None)
|
webpage, 'speaker', default=None)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user