Open bersbersbers opened 4 years ago
may be related to PR #25717
EDIT:as suggested, at second glance those are completely different issues
may be related to PR #25717
Related, yes, but nothing more. That PR is not merged yet, and converts webp files after download to jpg files with --embed-thumbnail
. This is not the case here, the thumbnail is not even downloaded correctly.
For this video, thumbnail https://i.ytimg.com/vi_webp/VXhmeGZHRp8/maxresdefault.webp returned from YouTube doesn't exist as shown in the log. And I don't see thumbnail in Firefox. This is YouTube's problem, I think.
YouTube seems to return maxresdefault.* according to the user-agent. (youtube-dl's default user-agent is of Chrome.) Since you see maxresdefault.jpg in your browser, if you specifiy that user-agent, you would get maxresdefault.jpg.
Demo:
$ youtube-dl VXhmeGZHRp8 --get-thumbnail --user-agent curl/7.54.0
https://i.ytimg.com/vi/VXhmeGZHRp8/maxresdefault.jpg
$ youtube-dl VXhmeGZHRp8 -o "%(id)s.%(ext)s" --write-thumbnail --user-agent curl/7.54.0
[youtube] VXhmeGZHRp8: Downloading webpage
[youtube] VXhmeGZHRp8: Downloading thumbnail ...
[youtube] VXhmeGZHRp8: Writing thumbnail to: VXhmeGZHRp8.jpg
[download] VXhmeGZHRp8.mp4 has already been downloaded and merged
Checklist
Verbose log
Description
From a list of videos, 1 video failed to download a thumbnail, although Youtube is showing one and I see one in the browser (namely, https://i.ytimg.com/vi/VXhmeGZHRp8/hqdefault.jpg, https://i.ytimg.com/vi/VXhmeGZHRp8/maxresdefault.jpg). See verbose output above.