[Bug]: Downloader not working #2888

Closed
opened 2025-01-19 08:26:47 +00:00 by Nakxin · 26 comments
Nakxin commented 2025-01-19 08:26:47 +00:00 (Migrated from github.com)

Preflight Checklist

  • I use the latest version of YouTube Music (Application).
  • I have searched the issue tracker for a bug report that matches the one I want to file, without success.
  • I understand that th-ch/youtube-music has NO affiliation with Google or YouTube

YouTube Music (Application) Version

3.7.2.0

Checklists

What operating system are you using?

Windows

Operating System Version

Windows 11

What CPU architecture are you using?

x64

Last Known Working YouTube Music (Application) version

3.6.1

Reproduction steps

Go on any music video press download, and be introduced with an error

Image

Expected Behavior

Find the song
press the 3 dots get the menu to pop down
press the download option
for it to work without giving me an error box

Actual Behavior

I press download it comes with an error
I tried on many songs and the problem still persists

Image

Enabled plugins

Compact sidebar
in-app menu
skip disliked songs
ad blocker
downloader
precise volume
ambient mode
album color theme
API Server [Beta]

Additional Information

I tried a custom option on the downloader but was introduced with a download button that did nothing no matter how many times i clicked
I tried Override User-Agent didn't work even after system restarts
I tried uninstalling and all the files associated to the program and did a full clean install still didn't work with the web.exe
I tried the portable version as well same issue persisted
I tried different type of songs (Short and long songs)
I tried disabling API Server [Beta] and the download button turned into a button that did nothing.
I tried re-enabling API Server [Beta] and the download button worked again but still caused an error when I tried downloading music
This issue is annoying and i've seen a bunch of people have this problem i tried following their steps in fixing the issue and yet it still persists.
I don't have enough knowledge about code to know what to look for when it comes to problems so if ill be given any feedback please dumb it down for me because im not familiar with most terms y'all would use.

### Preflight Checklist - [x] I use the latest version of YouTube Music (Application). - [x] I have searched the [issue tracker](https://github.com/th-ch/youtube-music/issues) for a bug report that matches the one I want to file, without success. - [x] I understand that **th-ch/youtube-music has NO affiliation with Google or YouTube** ### YouTube Music (Application) Version 3.7.2.0 ### Checklists - [ ] I use the portable version of the YouTube Music Application. - [x] I can reproduce this issue in the [official version of (WEB) YTM](https://music.youtube.com). ### What operating system are you using? Windows ### Operating System Version Windows 11 ### What CPU architecture are you using? x64 ### Last Known Working YouTube Music (Application) version 3.6.1 ### Reproduction steps Go on any music video press download, and be introduced with an error ![Image](https://github.com/user-attachments/assets/2f0f65da-a04f-4cbd-a3c6-eeb205ffcee8) ### Expected Behavior Find the song press the 3 dots get the menu to pop down press the download option for it to work without giving me an error box ### Actual Behavior I press download it comes with an error I tried on many songs and the problem still persists ![Image](https://github.com/user-attachments/assets/7d8f728f-78b2-4118-a3a7-31a11b59d994) ### Enabled plugins Compact sidebar in-app menu skip disliked songs ad blocker downloader precise volume ambient mode album color theme API Server [Beta] ### Additional Information I tried a custom option on the downloader but was introduced with a download button that did nothing no matter how many times i clicked I tried Override User-Agent didn't work even after system restarts I tried uninstalling and all the files associated to the program and did a full clean install still didn't work with the web.exe I tried the portable version as well same issue persisted I tried different type of songs (Short and long songs) I tried disabling API Server [Beta] and the download button turned into a button that did nothing. I tried re-enabling API Server [Beta] and the download button worked again but still caused an error when I tried downloading music This issue is annoying and i've seen a bunch of people have this problem i tried following their steps in fixing the issue and yet it still persists. I don't have enough knowledge about code to know what to look for when it comes to problems so if ill be given any feedback please dumb it down for me because im not familiar with most terms y'all would use.
jazzybeat commented 2025-01-19 23:35:25 +00:00 (Migrated from github.com)

Same here

Image
Same here <img width="280" alt="Image" src="https://github.com/user-attachments/assets/9ee6a9f2-8a0f-4ac3-8145-676110e31abc" />
arzezio7 commented 2025-01-20 14:11:59 +00:00 (Migrated from github.com)

Image

Same goes here with 3.7.2.0 :(

![Image](https://github.com/user-attachments/assets/9c1f9679-6d12-4fff-9ad7-7d205f776234) Same goes here with 3.7.2.0 :(
H8ted666 commented 2025-01-20 22:09:25 +00:00 (Migrated from github.com)

Don't fret, it will be ignored, and vague instructions on how you didn't format your question properly issued.

Don't fret, it will be ignored, and vague instructions on how you didn't format your question properly issued.
kmac commented 2025-01-20 22:16:14 +00:00 (Migrated from github.com)

Just a note: Reverting to 3.7.1.0 fixes the issue (for me)

Just a note: Reverting to 3.7.1.0 fixes the issue (for me)
JellyBrick commented 2025-01-21 03:41:43 +00:00 (Migrated from github.com)

Same here

Image

Excepted behavior. "Mixed for you" is not accessible using the YouTube API because it is a "YouTube mix" (not a playlist).

> Same here > > <img alt="Image" width="280" src="https://private-user-images.githubusercontent.com/815706/404703392-9ee6a9f2-8a0f-4ac3-8145-676110e31abc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzc0MzEwNTksIm5iZiI6MTczNzQzMDc1OSwicGF0aCI6Ii84MTU3MDYvNDA0NzAzMzkyLTllZTZhOWYyLThhMGYtNGFjMy04MTQ1LTY3NjExMGUzMWFiYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMTIxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDEyMVQwMzM5MTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMTUxY2M3N2Q2Yjc4YWI0N2VlNGUzZGMwZWE5OWFmNmM1YWJiOWMwMDVlN2ZjN2RjNjc1MDQ0ZjA4NmU5NGI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.HAhw15_6z8Drj0QWCYVPwhtoooyqhdgLecGQF7_bKwE"> Excepted behavior. "Mixed for you" is not accessible using the YouTube API because it is a "YouTube mix" (not a playlist).
stoicpenguin2234 commented 2025-01-21 04:26:51 +00:00 (Migrated from github.com)

i worked my way all the way back to 3.5.3 and got errors every time I tried to download a song

i worked my way all the way back to 3.5.3 and got errors every time I tried to download a song
kmac commented 2025-01-21 14:29:50 +00:00 (Migrated from github.com)

To clarify, I have a subscription. Probably relevant.

I'm relatively new to this app - is there a good way to see logs? I've looked through the documentation but don't see a recommended way to find debugging information.

To clarify, I have a subscription. Probably relevant. I'm relatively new to this app - is there a good way to see logs? I've looked through the documentation but don't see a recommended way to find debugging information.
Owner

The logs are not stored to a file, you'd have to launch youtube music from a terminal in order to see them.
And those logs will only contain the backend logs, you must open the chrome dev tools (Ctrl+Shift+I) to access the console and see the renderer logs as well.

The logs are not stored to a file, you'd have to launch youtube music from a terminal in order to see them. And those logs will only contain the backend logs, you must open the chrome dev tools (<kbd>Ctrl+Shift+I</kbd>) to access the console and see the renderer logs as well.
franz-dc commented 2025-01-24 09:14:32 +00:00 (Migrated from github.com)

Somewhat related, but this only happens in development. There is a problem with the current implementation of setting up PO Tokens.

Trace: BGError: PMD:Undefined
    at Function.create (D:\Repositories\youtube-music\node_modules\.pnpm\bgutils-js@3.1.2\node_modules\bgutils-js\dist\core\webPoMinter.js:9:19)
    at generate (D:\Repositories\youtube-music\node_modules\.pnpm\bgutils-js@3.1.2\node_modules\bgutils-js\dist\core\webPoClient.js:28:43)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at Object.onMainLoad (D:\Repositories\youtube-music\src\plugins\downloader\main\index.ts:152:31)
    at startPlugin (D:\Repositories\youtube-music\src\utils\index.ts:104:5)
    at forceLoadMainPlugin (D:\Repositories\youtube-music\src\loader\main.ts:103:24)
    at async Promise.allSettled (index 3)
    at loadAllMainPlugins (D:\Repositories\youtube-music\src\loader\main.ts:145:9)
    at createMainWindow (D:\Repositories\youtube-music\src\index.ts:362:3)
    at D:\Repositories\youtube-music\src\index.ts:728:16
    at startPlugin (D:\Repositories\youtube-music\src\utils\index.ts:127:13)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at forceLoadMainPlugin (D:\Repositories\youtube-music\src\loader\main.ts:103:24)
    at async Promise.allSettled (index 3)
    at loadAllMainPlugins (D:\Repositories\youtube-music\src\loader\main.ts:145:9)
    at createMainWindow (D:\Repositories\youtube-music\src\index.ts:362:3)
    at D:\Repositories\youtube-music\src\index.ts:728:16

That results to downloader button not working entirely:

Error occurred in handler for 'download-song': Error: No handler registered for 'download-song'
    at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87136)
    at WebContents.emit (node:events:518:28)
Somewhat related, but this only happens in development. There is a problem with the current implementation of setting up PO Tokens. ``` Trace: BGError: PMD:Undefined at Function.create (D:\Repositories\youtube-music\node_modules\.pnpm\bgutils-js@3.1.2\node_modules\bgutils-js\dist\core\webPoMinter.js:9:19) at generate (D:\Repositories\youtube-music\node_modules\.pnpm\bgutils-js@3.1.2\node_modules\bgutils-js\dist\core\webPoClient.js:28:43) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.onMainLoad (D:\Repositories\youtube-music\src\plugins\downloader\main\index.ts:152:31) at startPlugin (D:\Repositories\youtube-music\src\utils\index.ts:104:5) at forceLoadMainPlugin (D:\Repositories\youtube-music\src\loader\main.ts:103:24) at async Promise.allSettled (index 3) at loadAllMainPlugins (D:\Repositories\youtube-music\src\loader\main.ts:145:9) at createMainWindow (D:\Repositories\youtube-music\src\index.ts:362:3) at D:\Repositories\youtube-music\src\index.ts:728:16 at startPlugin (D:\Repositories\youtube-music\src\utils\index.ts:127:13) at processTicksAndRejections (node:internal/process/task_queues:95:5) at forceLoadMainPlugin (D:\Repositories\youtube-music\src\loader\main.ts:103:24) at async Promise.allSettled (index 3) at loadAllMainPlugins (D:\Repositories\youtube-music\src\loader\main.ts:145:9) at createMainWindow (D:\Repositories\youtube-music\src\index.ts:362:3) at D:\Repositories\youtube-music\src\index.ts:728:16 ``` That results to downloader button not working entirely: ``` Error occurred in handler for 'download-song': Error: No handler registered for 'download-song' at WebContents.<anonymous> (node:electron/js2c/browser_init:2:87136) at WebContents.emit (node:events:518:28) ```
Macflylegamer commented 2025-01-29 15:27:43 +00:00 (Migrated from github.com)

Could someone please fix this? I really need the downloader, it's rly usefull for me... Thanks

Could someone please fix this? I really need the downloader, it's rly usefull for me... Thanks
SpacerZVEVO commented 2025-01-30 09:16:46 +00:00 (Migrated from github.com)

Downloading a +55 public playlist results in only 3 successful downloads in mp3 mode. Failed downloads display the same error as described above. Tried on both 3.7.2 & 3.7.1 with the same results.

Downloading a +55 public playlist results in only 3 successful downloads in mp3 mode. Failed downloads display the same error as described above. Tried on both 3.7.2 & 3.7.1 with the same results.
MochiVN634 commented 2025-01-30 23:06:49 +00:00 (Migrated from github.com)

For me, it's even worse. I click on 'Download,' and nothing happens at all. I've already checked the chosen download folder, and it's empty.

For me, it's even worse. I click on 'Download,' and nothing happens at all. I've already checked the chosen download folder, and it's empty.
mirorbo commented 2025-02-02 04:34:09 +00:00 (Migrated from github.com)

Same issue different error code
(MacOS)

Image

Same issue different error code (MacOS) ![Image](https://github.com/user-attachments/assets/72c9b959-e5c1-434d-a96f-72ca96a44aef)
ChocoFleece commented 2025-02-02 05:01:47 +00:00 (Migrated from github.com)

Same issue on ArchLinux

Same issue on ArchLinux
Mahim2000 commented 2025-02-02 13:54:12 +00:00 (Migrated from github.com)

Same here on Arch Linux.
Happens on both youtube-music 3.7.2-1 and youtube-music-git 3.7.2.r35.g3236c88-1

Same here on Arch Linux. Happens on both youtube-music 3.7.2-1 and youtube-music-git 3.7.2.r35.g3236c88-1
Mendungo commented 2025-02-05 05:53:42 +00:00 (Migrated from github.com)

still waiting on a fix, seems like developers are in vacation :( it was such a great software

still waiting on a fix, seems like developers are in vacation :( it was such a great software
jrabinow commented 2025-02-10 05:34:06 +00:00 (Migrated from github.com)

I can confirm the exact same issues (both of them, same traceback, same messages) as in this comment https://github.com/th-ch/youtube-music/issues/2888#issuecomment-2612032098 are happening for me as well. I was about to create a separate bug report before finding this one.

If there is no fix for the bug at this time, @JellyBrick do you have permissions to pin issues? Could I suggest pinning this issue to make it more visible? Open-source devs need their time off too, this is a passion project not a paid job, but if/when time is available for contributing to this project, it would be best to avoid having 3000 duplicate issues. And hopefully, someone with motivation could chip in and fix the issue themselves.

Thanks for the awesome software. I've been using this for years and have made this one of the first programs I install on a new laptop.

@kmac https://github.com/th-ch/youtube-music/issues/2888#issuecomment-2604891659 to see logs, you can run the application from a shell. On my mac, it looks like $ /Applications/YouTube\ Music.app/Contents/MacOS/YouTube\ Music, your system might be different

I can confirm the exact same issues (both of them, same traceback, same messages) as in this comment https://github.com/th-ch/youtube-music/issues/2888#issuecomment-2612032098 are happening for me as well. I was about to create a separate bug report before finding this one. If there is no fix for the bug at this time, @JellyBrick do you have permissions to pin issues? Could I suggest pinning this issue to make it more visible? Open-source devs need their time off too, this is a passion project not a paid job, but if/when time is available for contributing to this project, it would be best to avoid having 3000 duplicate issues. And hopefully, someone with motivation could chip in and fix the issue themselves. Thanks for the awesome software. I've been using this for years and have made this one of the first programs I install on a new laptop. @kmac https://github.com/th-ch/youtube-music/issues/2888#issuecomment-2604891659 to see logs, you can run the application from a shell. On my mac, it looks like `$ /Applications/YouTube\ Music.app/Contents/MacOS/YouTube\ Music`, your system might be different
jrabinow commented 2025-02-10 05:45:48 +00:00 (Migrated from github.com)

In the meantime, for everyone waiting for a fix, here's a workaround: use yt-dlp and then convert to mp3 using ffmpeg. This is far from ideal due to the more technical nature of this approach. I'd much prefer to have this feature integrated and contributions to this repo healthy since it seems like this issue has been open for some time. For the time being, this workaround is all I got. For the less technically inclined, I'll suggest finding a youtube downloader online.

If you're reading this and you care enough that the workaround isn't good enough - this is open-source. Anyone can contribute, that's the point. Not everyone has the time for everything, including the core maintainer(s) whoever they are, and that's ok. Sometimes, people move on in their lives, and just as it would sadden me if this were the end of the road here, we can only adapt.

The fact that the last few months have seen a few releases tells me this is not abandoned, at least not yet. Maintaining can be very hard work sometimes. I'm just thankful the project was made open-source to begin with, and for the continued support over the years

In the meantime, for everyone waiting for a fix, here's a workaround: use yt-dlp and then convert to mp3 using ffmpeg. This is far from ideal due to the more technical nature of this approach. I'd much prefer to have this feature integrated and contributions to this repo healthy since it seems like this issue has been open for some time. For the time being, this workaround is all I got. For the less technically inclined, I'll suggest finding a youtube downloader online. If you're reading this and you care enough that the workaround isn't good enough - this is open-source. Anyone can contribute, that's the point. Not everyone has the time for everything, including the core maintainer(s) whoever they are, and that's ok. Sometimes, people move on in their lives, and just as it would sadden me if this were the end of the road here, we can only adapt. The fact that the last few months have seen a few releases tells me this is not abandoned, at least not yet. Maintaining can be very hard work sometimes. I'm just thankful the project was made open-source to begin with, and for the continued support over the years
kms0219kms commented 2025-02-10 09:37:38 +00:00 (Migrated from github.com)

It seems like YouTube is actively blocking the download. In the meantime, use yt-dlp or Youtube.js directly,
or just stop downloading the video :)

It seems like YouTube is actively blocking the download. In the meantime, use yt-dlp or Youtube.js directly, or just stop downloading the video :)
OpenFormEon commented 2025-02-10 23:07:59 +00:00 (Migrated from github.com)

Sorry for the unrelated question, but what's the best yt-dlp formatting to match the YT Music downloader's? I preferred downloading with YT Music because it got the thumbnail/title/artist properly, since I'm bad with all the yt-dlp options.

Sorry for the unrelated question, but what's the best yt-dlp formatting to match the YT Music downloader's? I preferred downloading with YT Music because it got the thumbnail/title/artist properly, since I'm bad with all the yt-dlp options.
franz-dc commented 2025-02-11 07:32:40 +00:00 (Migrated from github.com)

Sorry for the unrelated question, but what's the best yt-dlp formatting to match the YT Music downloader's? I preferred downloading with YT Music because it got the thumbnail/title/artist properly, since I'm bad with all the yt-dlp options.

If you are referring to the quality and format, the plugin uses the best quality with any media container (with mp3 as default).

Regarding ID3 tags, the plugin has its set logic to handle it automatically. For yt-dlp though, you have to manually set flags (like --embed-thumbnail) to set the metadata that you want.

> Sorry for the unrelated question, but what's the best yt-dlp formatting to match the YT Music downloader's? I preferred downloading with YT Music because it got the thumbnail/title/artist properly, since I'm bad with all the yt-dlp options. If you are referring to the quality and format, the plugin uses the best quality with any media container (with mp3 as default). Regarding ID3 tags, the plugin has its set logic to handle it automatically. For yt-dlp though, you have to manually set flags (like `--embed-thumbnail`) to set the metadata that you want.
JellyBrick commented 2025-02-14 18:47:58 +00:00 (Migrated from github.com)

I can confirm the exact same issues (both of them, same traceback, same messages) as in this comment #2888 (comment) are happening for me as well. I was about to create a separate bug report before finding this one.

If there is no fix for the bug at this time, @JellyBrick do you have permissions to pin issues? Could I suggest pinning this issue to make it more visible? Open-source devs need their time off too, this is a passion project not a paid job, but if/when time is available for contributing to this project, it would be best to avoid having 3000 duplicate issues. And hopefully, someone with motivation could chip in and fix the issue themselves.

Thanks for the awesome software. I've been using this for years and have made this one of the first programs I install on a new laptop.

@kmac #2888 (comment) to see logs, you can run the application from a shell. On my mac, it looks like $ /Applications/YouTube\ Music.app/Contents/MacOS/YouTube\ Music, your system might be different

Fixed at 5de07b9a96. Thanks

> I can confirm the exact same issues (both of them, same traceback, same messages) as in this comment [#2888 (comment)](https://github.com/th-ch/youtube-music/issues/2888#issuecomment-2612032098) are happening for me as well. I was about to create a separate bug report before finding this one. > > If there is no fix for the bug at this time, [@JellyBrick](https://github.com/JellyBrick) do you have permissions to pin issues? Could I suggest pinning this issue to make it more visible? Open-source devs need their time off too, this is a passion project not a paid job, but if/when time is available for contributing to this project, it would be best to avoid having 3000 duplicate issues. And hopefully, someone with motivation could chip in and fix the issue themselves. > > Thanks for the awesome software. I've been using this for years and have made this one of the first programs I install on a new laptop. > > [@kmac](https://github.com/kmac) [#2888 (comment)](https://github.com/th-ch/youtube-music/issues/2888#issuecomment-2604891659) to see logs, you can run the application from a shell. On my mac, it looks like `$ /Applications/YouTube\ Music.app/Contents/MacOS/YouTube\ Music`, your system might be different Fixed at 5de07b9a96ac8c939e36056da6af42d2875eea3c. Thanks
stutopp commented 2025-02-17 20:35:40 +00:00 (Migrated from github.com)

@JellyBrick, download is working for me in 3.7.4.0. Thanks for the fix!!

@JellyBrick, download is working for me in 3.7.4.0. Thanks for the fix!!
Mendungo commented 2025-02-18 05:47:40 +00:00 (Migrated from github.com)

Its not working for me, do i have to sign in with my premium account? I got suspended already once

Its not working for me, do i have to sign in with my premium account? I got suspended already once
franz-dc commented 2025-02-18 13:25:51 +00:00 (Migrated from github.com)

Its not working for me, do i have to sign in with my premium account? I got suspended already once

It should now work as long as you are not signed out.

> Its not working for me, do i have to sign in with my premium account? I got suspended already once It should now work as long as you are not signed out.
stutopp commented 2025-02-22 05:04:58 +00:00 (Migrated from github.com)

@JellyBrick aaaaaaaand it's back, and also being reported in #2270.

The only change (for me) is that the name of the song has replaced the hex string in the error message.

@JellyBrick aaaaaaaand it's back, and also being reported in #2270. The only change (for me) is that the name of the song has replaced the hex string in the error message.
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: YTMD/youtube-music#2888
No description provided.