aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/dplay.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-12-13 18:05:30 -0500
committerJesús <heckyel@hyperbola.info>2021-12-13 18:05:30 -0500
commitbcc2fc0faf3845cc3e95c6fc465e2b203f431f20 (patch)
tree8928e72dbe53bf35107d749b70eb9026cf9f7488 /yt_dlp/extractor/dplay.py
parent3a9fe880dddb69cfca33c8438683b69833139cd6 (diff)
parent86f3d52f8c0ee253827a2c86b9b5e7bd7e6458ed (diff)
downloadhypervideo-pre-bcc2fc0faf3845cc3e95c6fc465e2b203f431f20.tar.lz
hypervideo-pre-bcc2fc0faf3845cc3e95c6fc465e2b203f431f20.tar.xz
hypervideo-pre-bcc2fc0faf3845cc3e95c6fc465e2b203f431f20.zip
updated from upstream | 13/12/2021 at 18:05
Diffstat (limited to 'yt_dlp/extractor/dplay.py')
-rw-r--r--yt_dlp/extractor/dplay.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/extractor/dplay.py b/yt_dlp/extractor/dplay.py
index f5d6540c0..51e1f8f3c 100644
--- a/yt_dlp/extractor/dplay.py
+++ b/yt_dlp/extractor/dplay.py
@@ -564,10 +564,10 @@ class DiscoveryPlusShowBaseIE(DPlayBaseIE):
total_pages = try_get(season_json, lambda x: x['meta']['totalPages'], int) or 1
episodes_json = season_json['data']
for episode in episodes_json:
- video_id = episode['attributes']['path']
+ video_path = episode['attributes']['path']
yield self.url_result(
- '%svideos/%s' % (self._DOMAIN, video_id),
- ie=self._VIDEO_IE.ie_key(), video_id=video_id)
+ '%svideos/%s' % (self._DOMAIN, video_path),
+ ie=self._VIDEO_IE.ie_key(), video_id=episode.get('id') or video_path)
page_num += 1
def _real_extract(self, url):