projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa5740f
)
handle titles and captions set to ''
author
fnord
<fnord@fnord.mobi>
Fri, 17 Jul 2015 07:27:50 +0000
(
02:27
-0500)
committer
fnord
<fnord@fnord.mobi>
Fri, 17 Jul 2015 07:27:50 +0000
(
02:27
-0500)
youtube_dl/extractor/bbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bbc.py
b/youtube_dl/extractor/bbc.py
index 471d865d26c5feb03a66e3eca42fae5ccbe21e39..c910eb55afc16cca496f57553e12fac9a0c85c62 100644
(file)
--- 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'):