aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/bbc.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-10-17 00:26:45 +0600
committerSergey M․ <dstftw@gmail.com>2015-10-17 00:26:45 +0600
commit8daeeedc06f420e2a87ba4755b56e721391cedba (patch)
tree3428b22afba0727fc9d9877f6ff8fd149679acf7 /youtube_dl/extractor/bbc.py
parent6744f36db710eebe2ccc633e7f4f6132b968b0ec (diff)
[bbc] Fix FutureWarning
Diffstat (limited to 'youtube_dl/extractor/bbc.py')
-rw-r--r--youtube_dl/extractor/bbc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py
index 68995f81e..1b3a33e4e 100644
--- a/youtube_dl/extractor/bbc.py
+++ b/youtube_dl/extractor/bbc.py
@@ -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):