diff options
author | fnord <fnord@fnord.mobi> | 2015-07-17 02:27:50 -0500 |
---|---|---|
committer | fnord <fnord@fnord.mobi> | 2015-07-17 02:27:50 -0500 |
commit | 36da48798a28b8261d2f39f73f2522651d58a364 (patch) | |
tree | 52e056da816a46aad885079a8c6a0cad6b2156a7 /youtube_dl | |
parent | aa5740fb61d388754e9278a3e38de12203c1b89d (diff) |
handle titles and captions set to ''
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/bbc.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 471d865d2..c910eb55a 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -497,11 +497,13 @@ class BBCNewsIE(BBCCoUkIE): programme_id = jent.get('externalId') 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')) description = list_title - if jent.get('caption'): + if jent.get('caption', '') != '': description += ' - ' + jent.get('caption') thumbnail = None if jent.has_key('image'): |