1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[bbc] Fix FutureWarning

This commit is contained in:
Sergey M․ 2015-10-17 00:26:45 +06:00
parent 6744f36db7
commit 8daeeedc06

View file

@ -421,7 +421,7 @@ class BBCCoUkIE(InfoExtractor):
continue
title = playlist.find('./{%s}title' % self._EMP_PLAYLIST_NS).text
description_el = playlist.find('./{%s}summary' % self._EMP_PLAYLIST_NS)
description = description_el.text if description_el else None
description = description_el.text if description_el is not None else None
def get_programme_id(item):
def get_from_attributes(item):