Przeglądaj źródła

[nuevo] Improve thumbnail extraction

Sergey M․ 9 lat temu
rodzic
commit
ea17820432
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      youtube_dl/extractor/nuevo.py

+ 1 - 1
youtube_dl/extractor/nuevo.py

@@ -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 = []