mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-26 02:55:17 +00:00
Fixes bug inab4cbef
ab4cbeff00
Closes #5993 Authored by: bashonly
This commit is contained in:
parent
87ebab0615
commit
7481998b16
1 changed files with 4 additions and 3 deletions
|
@ -184,9 +184,10 @@ def _real_extract(self, url):
|
||||||
data = self._download_json(
|
data = self._download_json(
|
||||||
programcard_url, video_id, 'Downloading video JSON', query=query)
|
programcard_url, video_id, 'Downloading video JSON', query=query)
|
||||||
|
|
||||||
supplementary_data = self._download_json(
|
supplementary_data = {}
|
||||||
SERIES_API % f'/episode/{raw_video_id}', raw_video_id,
|
if re.search(r'_\d+$', raw_video_id):
|
||||||
default={}) if re.search(r'_\d+$', raw_video_id) else {}
|
supplementary_data = self._download_json(
|
||||||
|
SERIES_API % f'/episode/{raw_video_id}', raw_video_id, fatal=False) or {}
|
||||||
|
|
||||||
title = str_or_none(data.get('Title')) or re.sub(
|
title = str_or_none(data.get('Title')) or re.sub(
|
||||||
r'\s*\|\s*(?:TV\s*\|\s*DR|DRTV)$', '',
|
r'\s*\|\s*(?:TV\s*\|\s*DR|DRTV)$', '',
|
||||||
|
|
Loading…
Reference in a new issue