1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 16:57:40 +00:00

[mtv] Improve thumbnal extraction

This commit is contained in:
Sergey M․ 2017-07-23 21:00:19 +07:00
parent f0e31e32c9
commit 70bfab0e9a
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -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