summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-03-04 01:16:58 +0600
committerSergey M․ <dstftw@gmail.com>2016-03-04 01:16:58 +0600
commite1dd521e4964eae3aa4207c00e1673ab1ea0d4c1 (patch)
treec38670a32e1ab27a54faacebe84f40f4a044d4b7
parent12557339453e25dbb18dfc51dc1e88ca5325d8e9 (diff)
downloadyoutube-dl-e1dd521e4964eae3aa4207c00e1673ab1ea0d4c1.tar.gz
youtube-dl-e1dd521e4964eae3aa4207c00e1673ab1ea0d4c1.tar.xz
youtube-dl-e1dd521e4964eae3aa4207c00e1673ab1ea0d4c1.zip
[livestream] Fix FutureWarning (Closes #8742)
-rw-r--r--youtube_dl/extractor/livestream.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/livestream.py b/youtube_dl/extractor/livestream.py
index 38fb3d9e4..988436226 100644
--- a/youtube_dl/extractor/livestream.py
+++ b/youtube_dl/extractor/livestream.py
@@ -64,7 +64,7 @@ class LivestreamIE(InfoExtractor):
     def _parse_smil_formats(self, smil, smil_url, video_id, namespace=None, f4m_params=None, transform_rtmp_url=None):
         base_ele = find_xpath_attr(
             smil, self._xpath_ns('.//meta', namespace), 'name', 'httpBase')
-        base = base_ele.get('content') if base_ele else 'http://livestreamvod-f.akamaihd.net/'
+        base = base_ele.get('content') if base_ele is not None else 'http://livestreamvod-f.akamaihd.net/'
 
         formats = []
         video_nodes = smil.findall(self._xpath_ns('.//video', namespace))