projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e31e3
)
[mtv] Improve thumbnal extraction
author
Sergey M․
<dstftw@gmail.com>
Sun, 23 Jul 2017 14:00:19 +0000
(21:00 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 23 Jul 2017 14:02:06 +0000
(21:02 +0700)
youtube_dl/extractor/mtv.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/mtv.py
b/youtube_dl/extractor/mtv.py
index fc098cd13677c33b9813338bb3e50b3d85bb3103..25af5ddfda4765132fec413caca9a09fc2ba2bb9 100644
(file)
--- 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