[extractor/drtv] Fix bug in ab4cbef (#6034)

Fixes bug in ab4cbef ab4cbeff00
Closes #5993
Authored by: bashonly
pull/5844/head^2
bashonly 2 years ago committed by GitHub
parent 87ebab0615
commit 7481998b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -184,9 +184,10 @@ class DRTVIE(InfoExtractor):
data = self._download_json(
programcard_url, video_id, 'Downloading video JSON', query=query)
supplementary_data = {}
if re.search(r'_\d+$', raw_video_id):
supplementary_data = self._download_json(
SERIES_API % f'/episode/{raw_video_id}', raw_video_id,
default={}) if re.search(r'_\d+$', raw_video_id) else {}
SERIES_API % f'/episode/{raw_video_id}', raw_video_id, fatal=False) or {}
title = str_or_none(data.get('Title')) or re.sub(
r'\s*\|\s*(?:TV\s*\|\s*DR|DRTV)$', '',

Loading…
Cancel
Save