flecs icon indicating copy to clipboard operation
flecs copied to clipboard

[Bug]: i can;t download there is an error , its saying "ERROR: |[...] IS NOT A FUNCTION"

Open zoro-of-coding opened this issue 3 months ago • 24 comments

Preflight Checklist

  • [x] I use the latest version of YouTube Music (Application).
  • [x] I have searched the issue tracker 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.11

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.10

Reproduction steps

Image

Expected Behavior

to download the song

Actual Behavior

to download the song

Enabled plugins

download transparent player

Additional Information

No response

zoro-of-coding avatar Sep 28 '25 07:09 zoro-of-coding

This is duplicated by https://github.com/ytmd-devs/ytmd/issues/3932

segux avatar Sep 28 '25 07:09 segux

i am having the same problem... and sometimes there isn't even the download button

Image Image

Tahir-ops avatar Sep 28 '25 10:09 Tahir-ops

Either youtubei.js or bgutils-js is outdated due to YouTube's obfuscated output changing after a YouTube code update. To fix this issue, the maintainers have to fix these sub-dependencies' problems. This is also why most websites stopped working to download music and/or videos, everyone using those libraries stopped working simultaneously. A typical cat and mouse situation between us and the giants.

nanopink avatar Sep 28 '25 15:09 nanopink

@segux It's NOT the same report.

Image Image

They have DIFFERENT Error codes.

lazlar14 avatar Sep 29 '25 17:09 lazlar14

Image

go an error too

Felzow47 avatar Sep 30 '25 07:09 Felzow47

Yeah, the error code is different

lazlar14 avatar Sep 30 '25 07:09 lazlar14

Yeah, the error code is different

yeah i know just want to say i got an error too

Felzow47 avatar Sep 30 '25 07:09 Felzow47

@segux It's NOT the same report.

Image Image They have DIFFERENT Error codes.

I think is related, probably the api of innertube is returning different responses now is returning 2xx Here's a youtube.js dependency talking about the same https://github.com/LuanRT/YouTube.js/issues/1044

segux avatar Oct 01 '25 18:10 segux

Alright then, mate. Sorry if I had an aggressive tone.

lazlar14 avatar Oct 02 '25 13:10 lazlar14

I feel slightly clever, not much as I don't know how or why it works or what it does. From @segux note of the issue within youtube.js, I had worked out that where all the similar errors where coming from, I modified this to the /src/plugin/downloader/main/index.ts and rebuilt.

yt = await Innertube.create({ cache: new UniversalCache(false), player_id: '0004de42', cookie: await getCookieFromWindow(win), generate_session_locally: true, fetch: getNetFetchAsFetch(), });

The player ID addition seams to work, at least for now, the build was messy with errors as I didn't know what I was doing, but have a working AppImage and tar.gz that successfully download on my laptop and desktop.

Again I have no idea what this does, and I want to look further into why I was getting build errors but get a build that it still works. Hope my success may help others. This seamed the easier option that going the yt-dlp route, if I can be more confident of the build process, I'll try that one too as backup as this maybe the start of a cat and mouse game.

rabid-sausage avatar Oct 03 '25 00:10 rabid-sausage

Hi, I’ve also been struggling with download bugs on YTMD even after trying the proposed fixes. So I cobbled together a simple homemade script that gets the job done for grabbing music from YouTube Music. It’s nothing fancy, probably has a bunch of bugs, just something I’m sharing here in case it helps anyone.

youtube-music-downloader

If you have any feedback or want to help out, feel free to open an issue there!

Felzow47 avatar Oct 03 '25 00:10 Felzow47

@rabid-sausage would be nice, providing detailed steps for the users who want to fix the issue. "/src/plugin/downloader/main/index.ts" is not enough to find the file. (should've mentioned that it is either inside the AppData or GitHub Repo)

lazlar14 avatar Oct 04 '25 08:10 lazlar14

@rabid-sausage would be nice, providing detailed steps for the users who want to fix the issue. "/src/plugin/downloader/main/index.ts" is not enough to find the file. (should've mentioned that it is either inside the AppData or GitHub Repo)

you won't find the source code on your computer unless you cloned the github repository, and they mention they "built" the program, meaning they did not directly modify a build, but created a build of their own

ArjixWasTaken avatar Oct 04 '25 13:10 ArjixWasTaken

I'm back with an update, I have managed to fix the download. I have cloned the build following the README file and added the line code with the fix

lazlar14 avatar Oct 04 '25 13:10 lazlar14

@lazlar14 so that consistently works for you?

ArjixWasTaken avatar Oct 04 '25 14:10 ArjixWasTaken

Yes

lazlar14 avatar Oct 04 '25 14:10 lazlar14

I'm back with an update, I have managed to fix the download. I have cloned the build following the README file and added the line code with the fix

How to set the player ID to 0004e42? I don't know how to do the solution you're suggesting. If it's not too much trouble, could you explain it to me step by step? I tried to do it myself, but I didn't understand anything about cloning the build.

xBytexTV avatar Oct 04 '25 16:10 xBytexTV

I'm back with an update, I have managed to fix the download. I have cloned the build following the README file and added the line code with the fix

How to set the player ID to 0004e42? I don't know how to do the solution you're suggesting. If it's not too much trouble, could you explain it to me step by step? I tried to do it myself, but I didn't understand anything about cloning the build.

Have you asked ChatGPT?

lazlar14 avatar Oct 04 '25 17:10 lazlar14

I'm back with an update, I have managed to fix the download. I have cloned the build following the README file and added the line code with the fix

How to set the player ID to 0004e42? I don't know how to do the solution you're suggesting. If it's not too much trouble, could you explain it to me step by step? I tried to do it myself, but I didn't understand anything about cloning the build.

you can download the source code that includes the change here https://github.com/ytmd-devs/ytmd/archive/refs/heads/downloader-fix.zip all that's left is to build the code, but I uhh, doubt you'll find it easy

build steps are: pnpm install pnpm dist:win:x64 (for windows)

you'll need nodejs and pnpm

ArjixWasTaken avatar Oct 04 '25 18:10 ArjixWasTaken

Vuelvo con una actualización, he conseguido arreglar la descarga. Cloné la compilación siguiendo el archivo README y agregué el código de línea con la solución

How did you do it? I'm still trying to use ChatGPT, but it still doesn't work. In fact, I don't even see the download button, and ads still appear.

LyonDR avatar Oct 05 '25 01:10 LyonDR

I'm back with an update, I have managed to fix the download. I have cloned the build following the README file and added the line code with the fix

How to set the player ID to 0004e42? I don't know how to do the solution you're suggesting. If it's not too much trouble, could you explain it to me step by step? I tried to do it myself, but I didn't understand anything about cloning the build.

you can download the source code that includes the change here https://github.com/ytmd-devs/ytmd/archive/refs/heads/downloader-fix.zip all that's left is to build the code, but I uhh, doubt you'll find it easy

build steps are: pnpm install pnpm dist:win:x64 (for windows)

you'll need nodejs and pnpm

How do I download Node.js and npm? I thought it was just a matter of logging in and clicking download, but I see that's not the case. Sorry if this is tedious for you.

xBytexTV avatar Oct 05 '25 15:10 xBytexTV

I'm back with an update, I have managed to fix the download. I have cloned the build following the README file and added the line code with the fix

How to set the player ID to 0004e42? I don't know how to do the solution you're suggesting. If it's not too much trouble, could you explain it to me step by step? I tried to do it myself, but I didn't understand anything about cloning the build.

you can download the source code that includes the change here https://github.com/ytmd-devs/ytmd/archive/refs/heads/downloader-fix.zip all that's left is to build the code, but I uhh, doubt you'll find it easy build steps are: pnpm install pnpm dist:win:x64 (for windows) you'll need nodejs and pnpm

How do I download Node.js and npm? I thought it was just a matter of logging in and clicking download, but I see that's not the case. Sorry if this is tedious for you.

Search Google to download Node.js and then go and search for the "Git" app. With Node, you just have to install it and that's it. Git is where you'll do the entire procedure.

LyonDR avatar Oct 06 '25 17:10 LyonDR

so is there a patch or this is permentent i am unable to downloard

zoro-of-coding avatar Nov 14 '25 18:11 zoro-of-coding

so is there a patch or this is permentent i am unable to downloard

They've already fixed it, but that will be reflected in the next update. They haven't said when it will be released yet.

LyonDR avatar Nov 14 '25 19:11 LyonDR