mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-13 20:53:06 +00:00
[DiscoveryPlusShowBaseIE] yield actual video id
This commit is contained in:
parent
8b688881ba
commit
86f3d52f8c
@ -564,10 +564,10 @@ class DiscoveryPlusShowBaseIE(DPlayBaseIE):
|
|||||||
total_pages = try_get(season_json, lambda x: x['meta']['totalPages'], int) or 1
|
total_pages = try_get(season_json, lambda x: x['meta']['totalPages'], int) or 1
|
||||||
episodes_json = season_json['data']
|
episodes_json = season_json['data']
|
||||||
for episode in episodes_json:
|
for episode in episodes_json:
|
||||||
video_id = episode['attributes']['path']
|
video_path = episode['attributes']['path']
|
||||||
yield self.url_result(
|
yield self.url_result(
|
||||||
'%svideos/%s' % (self._DOMAIN, video_id),
|
'%svideos/%s' % (self._DOMAIN, video_path),
|
||||||
ie=self._VIDEO_IE.ie_key(), video_id=video_id)
|
ie=self._VIDEO_IE.ie_key(), video_id=episode.get('id') or video_path)
|
||||||
page_num += 1
|
page_num += 1
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
Loading…
Reference in New Issue
Block a user