mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-08 09:10:09 +01:00
handle titles and captions set to ''
This commit is contained in:
parent
aa5740fb61
commit
36da48798a
@ -497,11 +497,13 @@ def _real_extract(self, url):
|
|||||||
programme_id = jent.get('externalId')
|
programme_id = jent.get('externalId')
|
||||||
xml_url = jent.get('href')
|
xml_url = jent.get('href')
|
||||||
|
|
||||||
title = jent.get('caption',list_title)
|
title = jent.get('caption','')
|
||||||
|
if title == '':
|
||||||
|
title = list_title
|
||||||
|
|
||||||
duration = parse_duration(jent.get('duration'))
|
duration = parse_duration(jent.get('duration'))
|
||||||
description = list_title
|
description = list_title
|
||||||
if jent.get('caption'):
|
if jent.get('caption', '') != '':
|
||||||
description += ' - ' + jent.get('caption')
|
description += ' - ' + jent.get('caption')
|
||||||
thumbnail = None
|
thumbnail = None
|
||||||
if jent.has_key('image'):
|
if jent.has_key('image'):
|
||||||
|
Loading…
Reference in New Issue
Block a user