1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 08:47:41 +00:00

[nuevo] Improve thumbnail extraction

This commit is contained in:
Sergey M․ 2016-01-23 00:38:58 +06:00
parent 1257b049bc
commit ea17820432

View file

@ -16,7 +16,7 @@ class NuevoBaseIE(InfoExtractor):
title = xpath_text(config, './title', 'title', fatal=True).strip() title = xpath_text(config, './title', 'title', fatal=True).strip()
video_id = xpath_text(config, './mediaid', default=video_id) 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')) duration = float_or_none(xpath_text(config, './duration'))
formats = [] formats = []