Browse Source

[bbc] Make summary optional in legacy playlist

totalwebcasting
Sergey M․ 9 years ago
parent
commit
87cc0fbd18
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/bbc.py

+ 2
- 1
youtube_dl/extractor/bbc.py View File

@ -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):


Loading…
Cancel
Save