mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[bbc] Make summary optional in legacy playlist
This commit is contained in:
parent
baf39a1aa8
commit
87cc0fbd18
@ -401,7 +401,8 @@ def _extract_from_legacy_playlist(self, playlist, playlist_id):
|
||||
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…
Reference in New Issue
Block a user