1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 08:26:50 +00:00

[bbc] Make summary optional in legacy playlist

This commit is contained in:
Sergey M․ 2015-10-10 21:35:20 +06:00
parent baf39a1aa8
commit 87cc0fbd18

View File

@ -401,7 +401,8 @@ class BBCCoUkIE(InfoExtractor):
if kind != 'programme' and kind != 'radioProgramme': if kind != 'programme' and kind != 'radioProgramme':
continue continue
title = playlist.find('./{http://bbc.co.uk/2008/emp/playlist}title').text 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_programme_id(item):
def get_from_attributes(item): def get_from_attributes(item):