diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-10-10 21:35:20 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-10-10 21:38:09 +0600 |
commit | 87cc0fbd18345117926d27db7312cba663d0f5ad (patch) | |
tree | 0887eb7c2c08c30ee98821dcc6304dc49e2805a9 /youtube_dl/extractor | |
parent | baf39a1aa8af38ca295e5efdad277ddee5b11eb5 (diff) | |
download | youtube-dl-87cc0fbd18345117926d27db7312cba663d0f5ad.tar.xz |
[bbc] Make summary optional in legacy playlist
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/bbc.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index df61f0157..911ccd757 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -401,7 +401,8 @@ class BBCCoUkIE(InfoExtractor): if kind != 'programme' and kind != 'radioProgramme': continue title = playlist.find('./{http://bbc.co.uk/2008/emp/playlist}title').text - description = playlist.find('./{http://bbc.co.uk/2008/emp/playlist}summary').text + description_el = playlist.find('./{http://bbc.co.uk/2008/emp/playlist}summary') + description = description_el.text if description_el else None def get_programme_id(item): def get_from_attributes(item): |