mhogomchungu / media-downloader

Media Downloader is a Qt/C++ front end to yt-dlp, youtube-dl, gallery-dl, lux, you-get, svtplay-dl, aria2c, wget and safari books..
GNU General Public License v2.0
1.34k stars 101 forks source link

Bug: "[media-downloader] Download Failed(ErrorCode=1)" & media-downloader thinking the download options are urls #372

Closed WebDev222 closed 5 months ago

WebDev222 commented 5 months ago

Hello, I've had this problem in previous versions, but I have the latest version 4.2.0 installed. #298

Both in the base loader and in the batch loader the same loading error occurs.

The videos or audio themselves load, but they remain listed in the batch loader and the console gives an error.

media-downloader_2024-01-27_07-56-10

The console output without specifying the "-f bestvideo+bestaudio" parameter:

[media-downloader] cmd: "C:/Users/ds/AppData/Roaming/media-downloader/bin/yt-dlp.exe" "--match-filter" "!playlist" "--break-on-reject" "-f" "bestaudio" "-x" "--embed-thumbnail" "--audio-format" "mp3" "Default" "--newline" "--ignore-config" "--no-playlist" "-o" "%(title).200s-%(id)s.%(ext)s" "--output-na-placeholder" "NA" "--compat-options" "2022" "--progress-template" "download:[download] {"filename":"%(progress.filename)s","downloaded_bytes":"%(progress.downloaded_bytes)s","ETA":"%(progress.eta)s","total_bytes_estimate":"%(progress.total_bytes_estimate)s","total_bytes":"%(progress.total_bytes)s","speed":"%(progress.speed)s","fragment_index":"%(progress.fragment_index)s","fragment_count":"%(progress.fragment_count)s"}" "https://www.youtube.com/watch?v=OQetJl_Ps2Y"
[generic] Extracting URL: Default
ERROR: [generic] 'Default' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:Default" ) to search YouTube
[youtube] Extracting URL: https://www.youtube.com/watch?v=OQetJl_Ps2Y
[youtube] OQetJl_Ps2Y: Downloading webpage
[youtube] OQetJl_Ps2Y: Downloading ios player API JSON
[youtube] OQetJl_Ps2Y: Downloading android player API JSON
[youtube] OQetJl_Ps2Y: Downloading m3u8 information
[info] OQetJl_Ps2Y: Downloading 1 format(s): 251
[info] Downloading video thumbnail 41 ...
[info] Video Thumbnail 41 does not exist
[info] Downloading video thumbnail 40 ...
[info] Video Thumbnail 40 does not exist
[info] Downloading video thumbnail 39 ...
[info] Video Thumbnail 39 does not exist
[info] Downloading video thumbnail 38 ...
[info] Video Thumbnail 38 does not exist
[info] Downloading video thumbnail 37 ...
[info] Writing video thumbnail 37 to: Alfredo Kraus sings  O Lola c'hai di latti la cammisa-OQetJl_Ps2Y.webp
[download] Destination: Alfredo Kraus sings  O Lola c'hai di latti la cammisa-OQetJl_Ps2Y.webm
[download] 2,51 MiB / 2,51 MiB (100%) at 8,06 MiB/s, ETA NA
[ExtractAudio] Destination: Alfredo Kraus sings  O Lola c'hai di latti la cammisa-OQetJl_Ps2Y.mp3
[media-downloader] cmd: "C:/Users/ds/AppData/Roaming/media-downloader/bin/yt-dlp.exe" "--match-filter" "!playlist" "--break-on-reject" "-f" "bestaudio" "-x" "--embed-thumbnail" "--audio-format" "mp3" "Default" "--newline" "--ignore-config" "--no-playlist" "-o" "%(title).200s-%(id)s.%(ext)s" "--output-na-placeholder" "NA" "--compat-options" "2022" "--progress-template" "download:[download] {"filename":"%(progress.filename)s","downloaded_bytes":"%(progress.downloaded_bytes)s","ETA":"%(progress.eta)s","total_bytes_estimate":"%(progress.total_bytes_estimate)s","total_bytes":"%(progress.total_bytes)s","speed":"%(progress.speed)s","fragment_index":"%(progress.fragment_index)s","fragment_count":"%(progress.fragment_count)s"}" "https://www.youtube.com/watch?v=RyRSkbs-cgg"
[generic] Extracting URL: Default
ERROR: [generic] 'Default' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:Default" ) to search YouTube
[youtube] Extracting URL: https://www.youtube.com/watch?v=RyRSkbs-cgg
[youtube] RyRSkbs-cgg: Downloading webpage
[youtube] RyRSkbs-cgg: Downloading ios player API JSON
[youtube] RyRSkbs-cgg: Downloading android player API JSON
[youtube] RyRSkbs-cgg: Downloading m3u8 information
[info] RyRSkbs-cgg: Downloading 1 format(s): 251
[info] Downloading video thumbnail 41 ...
[info] Video Thumbnail 41 does not exist
[info] Downloading video thumbnail 40 ...
[info] Video Thumbnail 40 does not exist
[info] Downloading video thumbnail 39 ...
[info] Video Thumbnail 39 does not exist
[info] Downloading video thumbnail 38 ...
[info] Video Thumbnail 38 does not exist
[info] Downloading video thumbnail 37 ...
[info] Writing video thumbnail 37 to: O lola, ch'ai di latti la cammisa Cavalleria Rusticana, P. Mascagni - Mario del Monaco (TURIDDU)-RyRSkbs-cgg.webp
[download] Destination: O lola, ch'ai di latti la cammisa Cavalleria Rusticana, P. Mascagni - Mario del Monaco (TURIDDU)-RyRSkbs-cgg.webm
[download] 1,66 MiB / 1,66 MiB (100%) at 7,10 MiB/s, ETA NA
[ExtractAudio] Destination: O lola, ch'ai di latti la cammisa Cavalleria Rusticana, P. Mascagni - Mario del Monaco (TURIDDU)-RyRSkbs-cgg.mp3
[ThumbnailsConvertor] Converting thumbnail "O lola, ch'ai di latti la cammisa Cavalleria Rusticana, P. Mascagni - Mario del Monaco (TURIDDU)-RyRSkbs-cgg.webp" to png
[EmbedThumbnail] ffmpeg: Adding thumbnail to "O lola, ch'ai di latti la cammisa Cavalleria Rusticana, P. Mascagni - Mario del Monaco (TURIDDU)-RyRSkbs-cgg.mp3"
[media-downloader] Download Failed(ErrorCode=1)
[media-downloader] cmd: "C:/Users/ds/AppData/Roaming/media-downloader/bin/yt-dlp.exe" "--match-filter" "!playlist" "--break-on-reject" "-f" "bestaudio" "-x" "--embed-thumbnail" "--audio-format" "mp3" "Default" "--newline" "--ignore-config" "--no-playlist" "-o" "%(title).200s-%(id)s.%(ext)s" "--output-na-placeholder" "NA" "--compat-options" "2022" "--progress-template" "download:[download] {"filename":"%(progress.filename)s","downloaded_bytes":"%(progress.downloaded_bytes)s","ETA":"%(progress.eta)s","total_bytes_estimate":"%(progress.total_bytes_estimate)s","total_bytes":"%(progress.total_bytes)s","speed":"%(progress.speed)s","fragment_index":"%(progress.fragment_index)s","fragment_count":"%(progress.fragment_count)s"}" "https://www.youtube.com/watch?v=o7FAgWuCawc"
[generic] Extracting URL: Default
ERROR: [generic] 'Default' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:Default" ) to search YouTube
[youtube] Extracting URL: https://www.youtube.com/watch?v=o7FAgWuCawc
[youtube] o7FAgWuCawc: Downloading webpage
[youtube] o7FAgWuCawc: Downloading ios player API JSON
[youtube] o7FAgWuCawc: Downloading android player API JSON
[youtube] o7FAgWuCawc: Downloading m3u8 information
[info] o7FAgWuCawc: Downloading 1 format(s): 251
[info] Downloading video thumbnail 41 ...
[info] Writing video thumbnail 41 to: Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.webp
[download] Destination: Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.webm
[download] 1,70 MiB / 1,70 MiB (100%) at 7,91 MiB/s, ETA NA
[ExtractAudio] Destination: Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.mp3
[ThumbnailsConvertor] Converting thumbnail "Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.webp" to png
[EmbedThumbnail] ffmpeg: Adding thumbnail to "Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.mp3"
[media-downloader] Download Failed(ErrorCode=1)

I tried specifying "-f bestvideo+bestaudio" in the boot parameters - same error.

Console output with "-f bestvideo+bestaudio" parameter:

[media-downloader] cmd: "C:/Users/ds/AppData/Roaming/media-downloader/bin/yt-dlp.exe" "-f" "bestvideo+bestaudio" "--newline" "--ignore-config" "--no-playlist" "-o" "%(title).200s-%(id)s.%(ext)s" "Default" "--output-na-placeholder" "NA" "--compat-options" "2022" "--progress-template" "download:[download] {"filename":"%(progress.filename)s","downloaded_bytes":"%(progress.downloaded_bytes)s","ETA":"%(progress.eta)s","total_bytes_estimate":"%(progress.total_bytes_estimate)s","total_bytes":"%(progress.total_bytes)s","speed":"%(progress.speed)s","fragment_index":"%(progress.fragment_index)s","fragment_count":"%(progress.fragment_count)s"}" "https://www.youtube.com/watch?v=o7FAgWuCawc"
[generic] Extracting URL: Default
ERROR: [generic] 'Default' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:Default" ) to search YouTube
[youtube] Extracting URL: https://www.youtube.com/watch?v=o7FAgWuCawc
[youtube] o7FAgWuCawc: Downloading webpage
[youtube] o7FAgWuCawc: Downloading ios player API JSON
[youtube] o7FAgWuCawc: Downloading android player API JSON
[youtube] o7FAgWuCawc: Downloading m3u8 information
[info] o7FAgWuCawc: Downloading 1 format(s): 247+251
[download] Destination: Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.f247.webm
[download] 8,70 MiB / 8,70 MiB (100%) at 4,23 MiB/s, ETA NA
[download] Destination: Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.f251.webm
[download] 1,70 MiB / 1,70 MiB (100%) at 7,38 MiB/s, ETA NA
[Merger] Merging formats into "Franco Corelli - O Lola, ch'ai di latti la cammisa (Siciliana) Cavalleria rusticana 1963 La Scala-o7FAgWuCawc.webm"
[media-downloader] Download Failed(ErrorCode=1)

P.S. I apologize for possible bad English.

mhogomchungu commented 5 months ago

One of the options passed to yt-dlp is "Default" and yt-dlp thinks its a URL.

Not sure why this is happening in your system.

Are you sure you are running 4.2.0? What version do you see when clicking the "About" tab

WebDev222 commented 5 months ago

One of the options passed to yt-dlp is "Default" and yt-dlp thinks its a URL.

Not sure why this is happening in your system.

Are you sure you are running 4.2.0? What version do you see when clicking the "About" tab

Version 4.2.0 media-downloader_2024-01-27_12-14-53

I also tried removing the "https://www.youtube.com/ Default" line from the "Url Manager" section under Configure, but the result is similar - ErrorCode=1

mhogomchungu commented 5 months ago
  1. Close Media Downloader.
  2. Delete MD folder located at "C:/Users/ds/AppData/Roaming/media-downloader".
  3. Start MD and check if the problem is still there.
WebDev222 commented 5 months ago
  1. Close Media Downloader.

    1. Delete MD folder located at "C:/Users/ds/AppData/Roaming/media-downloader".

    2. Start MD and check if the problem is still there.

That helped, now everything works without errors. Thank you!