]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[nuevo] Improve thumbnail extraction
authorSergey M․ <dstftw@gmail.com>
Fri, 22 Jan 2016 18:38:58 +0000 (00:38 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 22 Jan 2016 18:38:58 +0000 (00:38 +0600)
youtube_dl/extractor/nuevo.py

index 225da033ccff1e12e993394925510c44c49b19cb..ef093dec2201afb7cb24384d7120f6ec00158de4 100644 (file)
@@ -16,7 +16,7 @@ class NuevoBaseIE(InfoExtractor):
 
         title = xpath_text(config, './title', 'title', fatal=True).strip()
         video_id = xpath_text(config, './mediaid', default=video_id)
-        thumbnail = xpath_text(config, './image')
+        thumbnail = xpath_text(config, ['./image', './thumb'])
         duration = float_or_none(xpath_text(config, './duration'))
 
         formats = []