diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-08-26 21:41:55 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-08-26 21:42:30 +0700 |
commit | dd88fd65a5eda12694104afa3fa891c640de71c6 (patch) | |
tree | c6c0b8504a7ee63cf6ce8f3b9b62349bd29101dd /youtube_dl/extractor/webofstories.py | |
parent | 287cf7e443814b405caac87449ee34fb055cc6b7 (diff) |
[webofstories:playlist] Fix extraction (closes #16914)
Diffstat (limited to 'youtube_dl/extractor/webofstories.py')
-rw-r--r-- | youtube_dl/extractor/webofstories.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/youtube_dl/extractor/webofstories.py b/youtube_dl/extractor/webofstories.py index 1eb1f6702..f2b8d19b4 100644 --- a/youtube_dl/extractor/webofstories.py +++ b/youtube_dl/extractor/webofstories.py @@ -4,7 +4,10 @@ from __future__ import unicode_literals import re from .common import InfoExtractor -from ..utils import int_or_none +from ..utils import ( + int_or_none, + orderedSet, +) class WebOfStoriesIE(InfoExtractor): @@ -133,8 +136,10 @@ class WebOfStoriesPlaylistIE(InfoExtractor): webpage = self._download_webpage(url, playlist_id) entries = [ - self.url_result('http://www.webofstories.com/play/%s' % video_number, 'WebOfStories') - for video_number in set(re.findall(r'href="/playAll/%s\?sId=(\d+)"' % playlist_id, webpage)) + self.url_result( + 'http://www.webofstories.com/play/%s' % video_id, + 'WebOfStories', video_id=video_id) + for video_id in orderedSet(re.findall(r'\bid=["\']td_(\d+)', webpage)) ] title = self._search_regex( |