Skip to content

Commit

Permalink
handle titles and captions set to ''
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicdryad committed Jul 17, 2015
1 parent aa5740f commit 36da487
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions youtube_dl/extractor/bbc.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,13 @@ def _real_extract(self, url):
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'):
Expand Down

0 comments on commit 36da487

Please sign in to comment.