mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[mtv] Improve thumbnal extraction
This commit is contained in:
parent
f0e31e32c9
commit
70bfab0e9a
1 changed files with 1 additions and 2 deletions
|
@ -50,8 +50,7 @@ def _get_thumbnail_url(self, uri, itemdoc):
|
||||||
thumb_node = itemdoc.find(search_path)
|
thumb_node = itemdoc.find(search_path)
|
||||||
if thumb_node is None:
|
if thumb_node is None:
|
||||||
return None
|
return None
|
||||||
else:
|
return thumb_node.get('url') or thumb_node.text or None
|
||||||
return thumb_node.attrib['url']
|
|
||||||
|
|
||||||
def _extract_mobile_video_formats(self, mtvn_id):
|
def _extract_mobile_video_formats(self, mtvn_id):
|
||||||
webpage_url = self._MOBILE_TEMPLATE % mtvn_id
|
webpage_url = self._MOBILE_TEMPLATE % mtvn_id
|
||||||
|
|
Loading…
Reference in a new issue