aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-07-23 21:00:19 +0700
committerSergey M․ <dstftw@gmail.com>2017-07-23 21:02:06 +0700
commit70bfab0e9ac8ddb7da67d71633c8c4b0704054cf (patch)
treebecd4ed6eda4d66419b664d6e74f7f2ec376b81f /youtube_dl/extractor
parentf0e31e32c940d8529353f40bd2426163c3199216 (diff)
[mtv] Improve thumbnal extraction
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r--youtube_dl/extractor/mtv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py
index fc098cd13..25af5ddfd 100644
--- a/youtube_dl/extractor/mtv.py
+++ b/youtube_dl/extractor/mtv.py
@@ -50,8 +50,7 @@ class MTVServicesInfoExtractor(InfoExtractor):
thumb_node = itemdoc.find(search_path)
if thumb_node is None:
return None
- else:
- return thumb_node.attrib['url']
+ return thumb_node.get('url') or thumb_node.text or None
def _extract_mobile_video_formats(self, mtvn_id):
webpage_url = self._MOBILE_TEMPLATE % mtvn_id