mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-27 14:14:54 +01:00
[nuevo] Improve thumbnail extraction
This commit is contained in:
parent
1257b049bc
commit
ea17820432
|
@ -16,7 +16,7 @@ def _extract_nuevo(self, config_url, video_id):
|
||||||
|
|
||||||
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 = []
|
||||||
|
|
Loading…
Reference in New Issue
Block a user