diff --git a/youtube_dl/extractor/webofstories.py b/youtube_dl/extractor/webofstories.py index 73728db76..145af2e2f 100644 --- a/youtube_dl/extractor/webofstories.py +++ b/youtube_dl/extractor/webofstories.py @@ -133,10 +133,10 @@ class WebOfStoriesPlaylistIE(InfoExtractor): webpage = self._download_webpage(url, playlist_id) entries = [ - self.url_result('http://www.webofstories.com/play/%s/%d' % (playlist_id, video_number), 'WebOfStories') - for video_number in range(1, len(re.findall(r'class="playListItem\s+"', webpage)) + 2) + 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'id="(\d+)"', webpage)) + 1) ] - + print(entries[0]) title = self._search_regex( r'