Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--convert-thumbnails option broke the media download if the thumbnail is not available #2125

Closed
6 tasks done
renalid opened this issue Dec 26, 2021 · 0 comments
Closed
6 tasks done
Assignees
Labels
bug Bug that is not site-specific

Comments

@renalid
Copy link
Contributor

renalid commented Dec 26, 2021

Checklist

  • I'm reporting a bug unrelated to a specific site
  • I've verified that I'm running yt-dlp version 2021.12.25. (update instructions)
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones. DO NOT post duplicates
  • I've read the guidelines for opening an issue

Description

Hello !

If I put the option "--convert-thumbnails jpg" and if the thumbnail is not available for the item, it broke the media download (it was skipped) :-(

Thanks for your support and help

Best

Verbose log

yt-dlp http://radiofrance-podcast.net/podcast09/rss_13991.xml -o '/Pop N Co/%(autonumber)01d - %(title)s - %(extractor)s-%(id)s-%(upload_date)s.%(ext)s' --restrict-filenames --extract-audio --audio-format mp3 --audio-quality 2 --embed-thumbnail --write-info-json --write-all-thumbnails --convert-thumbnails jpg --add-metadata --download-archive archives-audio.txt --sleep-interval 3 --max-sleep-interval 10 --no-write-playlist-metafiles --autonumber-start 35 -i  --playlist-reverse  --playlist-end 10 --no-abort-on-error --verbose
[debug] Command-line config: ['http://radiofrance-podcast.net/podcast09/rss_13991.xml', '-o', '/Pop N Co/%(autonumber)01d - %(title)s - %(extractor)s-%(id)s-%(upload_date)s.%(ext)s', '--restrict-filenames', '--extract-audio', '--audio-format', 'mp3', '--audio-quality', '2', '--embed-thumbnail', '--write-info-json', '--write-all-thumbnails', '--convert-thumbnails', 'jpg', '--add-metadata', '--download-archive', 'archives-audio.txt', '--sleep-interval', '3', '--max-sleep-interval', '10', '--no-write-playlist-metafiles', '--autonumber-start', '35', '-i', '--playlist-reverse', '--playlist-end', '10', '--no-abort-on-error', '--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, err UTF-8, pref UTF-8
[debug] yt-dlp version 2021.12.25 [87e049962] (zip)
[debug] Python version 3.7.3 (CPython 64bit) - Linux-4.19.0-5-cloud-amd64-x86_64-with-debian-10.11
[debug] exe versions: ffmpeg 4.3.1-static, ffprobe 4.3.1-static
[debug] Optional libraries: sqlite
[debug] Proxy map: {}
[debug] Loading archive file 'archives-audio.txt'
[debug] [generic] Extracting URL: http://radiofrance-podcast.net/podcast09/rss_13991.xml
[generic] rss_13991: Requesting header
WARNING: [generic] Falling back on generic information extractor.
[generic] rss_13991: Downloading webpage
[generic] rss_13991: Extracting information
[debug] Identified a RSS feed
[download] Downloading playlist: Pop N' Co
[generic] playlist Pop N' Co: Collected 26 videos; downloading 10 of them
[download] Downloading video 1 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/a1c2a2ab-4c17-4c80-a534-611149135f32/13991-03.12.2021-ITEMA_22858746-2021F21409S0337-22.mp3
[generic] 13991-03.12.2021-ITEMA_22858746-2021F21409S0337-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-03.12.2021-ITEMA_22858746-2021F21409S0337-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-03.12.2021-ITEMA_22858746-2021F21409S0337-22.mp3
[generic] 13991-03.12.2021-ITEMA_22858746-2021F21409S0337-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-03.12.2021-ITEMA_22858746-2021F21409S0337-22: Downloading 1 format(s): mpeg
[download] "Is this Love" de Bob Marley has already been recorded in the archive
[download] Downloading video 2 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/613d7b60-7bba-47cc-8fd5-f88f18631476/13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22.mp3
[generic] 13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22.mp3
[generic] 13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22: Downloading 1 format(s): mpeg
[info] Writing video metadata as JSON to: /Pop N Co/35 - Rebecca_Manzoni_presente_Titre_a_titre_d_Orelsan - generic-13991-06.12.2021-ITEMA_22861960-2021F31202E0050-22-20211206.info.json
ERROR: 'thumbnails'
Traceback (most recent call last):
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1352, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1760, in __process_iterable_entry
    entry, download=download, extra_info=extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1540, in process_ie_result
    new_result, download=download, extra_info=extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1540, in process_ie_result
    new_result, download=download, extra_info=extra_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 1487, in process_ie_result
    ie_result = self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2549, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 2833, in process_info
    info_dict, files_to_move = self.pre_process(info_dict, 'before_dl', files_to_move)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3223, in pre_process
    info = self.run_pp(pp, info)
  File "/usr/local/bin/yt-dlp/yt_dlp/YoutubeDL.py", line 3176, in run_pp
    files_to_delete, infodict = pp.run(infodict)
  File "/usr/local/bin/yt-dlp/yt_dlp/postprocessor/common.py", line 22, in run
    ret = func(self, info, *args, **kwargs)
  File "/usr/local/bin/yt-dlp/yt_dlp/postprocessor/ffmpeg.py", line 1095, in run
    for idx, thumbnail_dict in enumerate(info['thumbnails']):
KeyError: 'thumbnails'

[download] Downloading video 3 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/2f6ff850-5fe1-4aac-b34a-0653b37f8af2/13991-10.12.2021-ITEMA_22866249-2021F22862S0345-22.mp3
[generic] 13991-10.12.2021-ITEMA_22866249-2021F22862S0345-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-10.12.2021-ITEMA_22866249-2021F22862S0345-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-10.12.2021-ITEMA_22866249-2021F22862S0345-22.mp3
[generic] 13991-10.12.2021-ITEMA_22866249-2021F22862S0345-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-10.12.2021-ITEMA_22866249-2021F22862S0345-22: Downloading 1 format(s): mpeg
[download] Christophe, le Beau Bizarre has already been recorded in the archive
[download] Downloading video 4 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/d60bba19-e80f-49f8-8584-a1b97a0bd293/13991-10.12.2021-ITEMA_22866249-2021F21409S0344-22.mp3
[generic] 13991-10.12.2021-ITEMA_22866249-2021F21409S0344-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-10.12.2021-ITEMA_22866249-2021F21409S0344-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-10.12.2021-ITEMA_22866249-2021F21409S0344-22.mp3
[generic] 13991-10.12.2021-ITEMA_22866249-2021F21409S0344-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-10.12.2021-ITEMA_22866249-2021F21409S0344-22: Downloading 1 format(s): mpeg
[download] Le château hanté des "Paradis perdus" par Christophe has already been recorded in the archive
[download] Downloading video 5 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/8b5e7a69-0724-41b5-a6e8-3c3981c62150/13991-17.12.2021-ITEMA_22873909-2021F22862S0352-22.mp3
[generic] 13991-17.12.2021-ITEMA_22873909-2021F22862S0352-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-17.12.2021-ITEMA_22873909-2021F22862S0352-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-17.12.2021-ITEMA_22873909-2021F22862S0352-22.mp3
[generic] 13991-17.12.2021-ITEMA_22873909-2021F22862S0352-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-17.12.2021-ITEMA_22873909-2021F22862S0352-22: Downloading 1 format(s): mpeg
[download] Adele, de la fille des faubourgs à la Diva has already been recorded in the archive
[download] Downloading video 6 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/859c93d5-3777-4d5f-b161-a0c72cb508ba/13991-17.12.2021-ITEMA_22873909-2021F21409S0351-22.mp3
[generic] 13991-17.12.2021-ITEMA_22873909-2021F21409S0351-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-17.12.2021-ITEMA_22873909-2021F21409S0351-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-17.12.2021-ITEMA_22873909-2021F21409S0351-22.mp3
[generic] 13991-17.12.2021-ITEMA_22873909-2021F21409S0351-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-17.12.2021-ITEMA_22873909-2021F21409S0351-22: Downloading 1 format(s): mpeg
[download] "La bicyclette" par Yves Montand has already been recorded in the archive
[download] Downloading video 7 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/95e7fe45-d416-4755-90b6-d63e02db66ba/13991-18.12.2021-ITEMA_22874930-2021F41330S0352-22.mp3
[generic] 13991-18.12.2021-ITEMA_22874930-2021F41330S0352-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-18.12.2021-ITEMA_22874930-2021F41330S0352-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-18.12.2021-ITEMA_22874930-2021F41330S0352-22.mp3
[generic] 13991-18.12.2021-ITEMA_22874930-2021F41330S0352-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-18.12.2021-ITEMA_22874930-2021F41330S0352-22: Downloading 1 format(s): mpeg
[download] La chanson "Sorry Angel" reprise par Alex Beaupain has already been recorded in the archive
[download] Downloading video 8 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/cd6c3c1c-d423-4b0d-bb4c-ca82e9f32bed/13991-24.12.2021-ITEMA_22879910-2021F22862S0359-22.mp3
[generic] 13991-24.12.2021-ITEMA_22879910-2021F22862S0359-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-24.12.2021-ITEMA_22879910-2021F22862S0359-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-24.12.2021-ITEMA_22879910-2021F22862S0359-22.mp3
[generic] 13991-24.12.2021-ITEMA_22879910-2021F22862S0359-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-24.12.2021-ITEMA_22879910-2021F22862S0359-22: Downloading 1 format(s): mpeg
[download] Pop N' Co et les chansons de Noël has already been recorded in the archive
[download] Downloading video 9 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/6b22657e-861b-42c9-b622-915808d8c659/13991-24.12.2021-ITEMA_22879910-2021F21409S0358-22.mp3
[generic] 13991-24.12.2021-ITEMA_22879910-2021F21409S0358-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-24.12.2021-ITEMA_22879910-2021F21409S0358-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-24.12.2021-ITEMA_22879910-2021F21409S0358-22.mp3
[generic] 13991-24.12.2021-ITEMA_22879910-2021F21409S0358-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-24.12.2021-ITEMA_22879910-2021F21409S0358-22: Downloading 1 format(s): mpeg
[download] “Fever” par Peggy Lee has already been recorded in the archive
[download] Downloading video 10 of 10
[debug] [generic] Extracting URL: https://rf.proxycast.org/35088ede-f3a9-466f-a1bd-7208d8a10fe0/13991-25.12.2021-ITEMA_22880579-2021F41330S0359-22.mp3
[generic] 13991-25.12.2021-ITEMA_22880579-2021F41330S0359-22: Requesting header
[redirect] Following redirect to https://media.radiofrance-podcast.net/podcast09/13991-25.12.2021-ITEMA_22880579-2021F41330S0359-22.mp3
[debug] [generic] Extracting URL: https://media.radiofrance-podcast.net/podcast09/13991-25.12.2021-ITEMA_22880579-2021F41330S0359-22.mp3
[generic] 13991-25.12.2021-ITEMA_22880579-2021F41330S0359-22: Requesting header
[debug] Identified a direct video link
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[info] 13991-25.12.2021-ITEMA_22880579-2021F41330S0359-22: Downloading 1 format(s): mpeg
[download] "Snow is falling in Manhattan" par Chilly Gonzales has already been recorded in the archive
[download] Finished downloading playlist: Pop N' Co
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug that is not site-specific
Projects
None yet
Development

No branches or pull requests

2 participants