mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[webofstories:playlist] Fix extraction (closes #16914)
This commit is contained in:
parent
287cf7e443
commit
dd88fd65a5
1 changed files with 8 additions and 3 deletions
|
@ -4,7 +4,10 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import int_or_none
|
from ..utils import (
|
||||||
|
int_or_none,
|
||||||
|
orderedSet,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class WebOfStoriesIE(InfoExtractor):
|
class WebOfStoriesIE(InfoExtractor):
|
||||||
|
@ -133,8 +136,10 @@ def _real_extract(self, url):
|
||||||
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' % video_number, 'WebOfStories')
|
self.url_result(
|
||||||
for video_number in set(re.findall(r'href="/playAll/%s\?sId=(\d+)"' % playlist_id, webpage))
|
'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(
|
title = self._search_regex(
|
||||||
|
|
Loading…
Reference in a new issue