I'm using a script to auto download playlists but it stopped working at embedding thumbnails
I'm using a script to auto download playlists but it stopped working at embedding thumbnails. This is the script:
` #!/bin/sh while read playlist; do #Get name of get name of the playlist name=$(youtube-dl --flat-playlist $playlist | grep -oP "(\[download\] Downloading playlist: )\K.*") #download, convert to m4a/mp3 and store in a subdirectory named after the playlist youtube-dl $playlist \ --verbose \ --output "$name"'/%(title)s.%(ext)s' \ --extract-audio \ --audio-format m4a \ --embed-thumbnail \ --audio-quality 7 \ --download-archive "$name"/"$name"-archive.txt done < ~/playlists.txt `
and heres the output
` [debug] System config: [] [debug] User config: [] [debug] Custom config: [] [debug] Command-line args: ['https://www.youtube.com/playlist?list=PLYT2Z8HhgQOxpdSl57HaJQm9KT8dnclN9', '--verbose', '--output', 'Resonance/%(title)s.%(ext)s', '--extract-audio', '--audio-format', 'm4a', '--embed-thumbnail', '--audio-quality', '7', '--download-archive', 'Resonance/Resonance-archive.txt'] [debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8 [debug] youtube-dl version 2020.06.16.1 [debug] Python version 3.8.3 (CPython) - Linux-5.7.9-1-MANJARO-x86_64-with-glibc2.2.5 [debug] exe versions: ffmpeg 4.2.4, ffprobe 4.2.4, rtmpdump 2.4 [debug] Proxy map: {} [youtube:playlist] PLYT2Z8HhgQOxpdSl57HaJQm9KT8dnclN9: Downloading webpage [download] Downloading playlist: Resonance [youtube:playlist] playlist Resonance: Downloading 20 videos [download] Downloading video 1 of 20 [download] Home - Resonance (Thase Bootleg) has already been recorded in archive [download] Downloading video 2 of 20 [youtube] w8Sj7hPd8pY: Downloading webpage [youtube] {18} signature length 110, html5 player 8786a07b [youtube] {137} signature length 110, html5 player 8786a07b [youtube] {248} signature length 110, html5 player 8786a07b [youtube] {136} signature length 110, html5 player 8786a07b [youtube] {247} signature length 110, html5 player 8786a07b [youtube] {135} signature length 110, html5 player 8786a07b [youtube] {244} signature length 110, html5 player 8786a07b [youtube] {134} signature length 110, html5 player 8786a07b [youtube] {243} signature length 106, html5 player 8786a07b [youtube] {133} signature length 110, html5 player 8786a07b [youtube] {242} signature length 110, html5 player 8786a07b [youtube] {160} signature length 110, html5 player 8786a07b [youtube] {278} signature length 110, html5 player 8786a07b [youtube] {140} signature length 110, html5 player 8786a07b [youtube] {249} signature length 106, html5 player 8786a07b [youtube] {250} signature length 110, html5 player 8786a07b [youtube] {251} signature length 106, html5 player 8786a07b [youtube] w8Sj7hPd8pY: Downloading thumbnail ... [youtube] w8Sj7hPd8pY: Writing thumbnail to: Resonance/Home - Resonance (Soundstorm DnB Edit).webp [debug] Invoking downloader on 'https://r2---sn-5hne6nsk.googlevideo.com/videoplayback?expire=1595547078&ei=ZskZX7fuCIqoW7KTgNAP&ip=190.2.146.228&id=o-AORZOKZPDdRa_szSLK4OuU29HWTVQoXiDUkTQEOvjyLA&itag=251&source=youtube&requiressl=yes&mh=bG&mm=31%2C29&mn=sn-5hne6nsk%2Csn-5hnekn7l&ms=au%2Crdu&mv=m&mvi=2&pl=23&initcwndbps=283750&vprv=1&mime=audio%2Fwebm&gir=yes&clen=4768481&dur=295.241&lmt=1539848591023309&mt=1595525373&fvip=2&keepalive=yes&fexp=23883098&c=WEB&txp=5411222&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=AG3C_xAwRAIgcyknQ3PifS7f8rTqlO-E7sKAr6PEEsuZwgDCOZQ_rawCIE904mRzqZPk8yXYPxz8_xxnOKi0loL9bO8yJ00uTTlZ&sig=AOq0QJ8wRAIgZBlBpmMHMtEtyAtNLRskK6LTs1Qb9Mid331iOhvxsl8CIAJYur2TPpk6GHOWU5q_tGCKATbbAzic7GtvbEd_3XPE&ratebypass=yes' [download] Destination: Resonance/Home - Resonance (Soundstorm DnB Edit).webm [download] 100% of 4.55MiB in 00:01 [debug] ffmpeg command line: ffprobe -show_streams 'file:Resonance/Home - Resonance (Soundstorm DnB Edit).webm' [ffmpeg] Destination: Resonance/Home - Resonance (Soundstorm DnB Edit).m4a [debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:Resonance/Home - Resonance (Soundstorm DnB Edit).webm' -vn -acodec aac -q:a 7 -bsf:a aac_adtstoasc 'file:Resonance/Home - Resonance (Soundstorm DnB Edit).m4a' Deleting original file Resonance/Home - Resonance (Soundstorm DnB Edit).webm (pass -k to keep) [atomicparsley] Adding thumbnail to "Resonance/Home - Resonance (Soundstorm DnB Edit).m4a" [debug] AtomicParsley command line: AtomicParsley 'Resonance/Home - Resonance (Soundstorm DnB Edit).m4a' --artwork 'Resonance/Home - Resonance (Soundstorm DnB Edit).webp' -o 'Resonance/Home - Resonance (Soundstorm DnB Edit).temp.m4a' ERROR: Traceback (most recent call last): File "/home/nehemiah/.local/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2065, in post_process files_to_delete, info = pp.run(info) File "/home/nehemiah/.local/lib/python3.8/site-packages/youtube_dl/postprocessor/embedthumbnail.py", line 79, in run raise EmbedThumbnailPPError(msg) youtube_dl.postprocessor.embedthumbnail.EmbedThumbnailPPError `
is the script incorrect? I am on the latest version and this script used to work just fine.