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

Unable to play songs in the app #1748

Open
4 tasks done
Meow-141 opened this issue Dec 16, 2024 · 204 comments · May be fixed by #1774
Open
4 tasks done

Unable to play songs in the app #1748

Meow-141 opened this issue Dec 16, 2024 · 204 comments · May be fixed by #1774
Labels
bug Something isn't working

Comments

@Meow-141
Copy link

Checklist

  • I am able to reproduce the bug with the latest debug version.
  • I've checked that there is no open or closed issue about this bug.
  • This issue contains only one bug.
  • The title of this issue accurately describes the bug.

Steps to reproduce the bug

"1. Look up for the song in the search menu or select song from library"
"2. Select song to play"

Expected behavior

"song should play"

Actual behavior

Shows:"Unknown error"

Screenshots/Screen recordings

Screenshot_2024-12-17-00-41-02-82_f4703f2d42345ac28c56f11a6100c500

Logs

Unable to provide log file, apologies.

InnerTune version

0.5.10

Android version

Android 12

Additional information

Have tried reinstalling the app but the issue persists.

@Meow-141 Meow-141 added the bug Something isn't working label Dec 16, 2024
@7agi
Copy link

7agi commented Dec 16, 2024

same for me, innertune server things i suppose

@Wolver78
Copy link

I am experiencing the same thing.

@Miguelin96
Copy link

I have the same problem

@p-1749
Copy link

p-1749 commented Dec 16, 2024

same for me, innertune server things i suppose

I thought it used youtube's servers?

@Upgrayedd710
Copy link

Same here.

@BrandonIsHere5
Copy link

Yeah, hoping it won't be just like the ViMusic app

@7agi
Copy link

7agi commented Dec 17, 2024

I thought it used youtube's servers?

yes, but some apps like innertune still works even without account, but innertune doesn't work, with neither no account nor with one

@Zephyr-debugg
Copy link

Yaa, same thing I can't play any songs & it's showing unknown error

@Hhkhhhj
Copy link

Hhkhhhj commented Dec 17, 2024

Yeah, hoping it won't be just like the ViMusic app

Yea fr I got a bit scared

@maxinewyntir
Copy link

Yup, I'm having the same issue for the last two days now. Rebooted my phone, logged-out from my YouTube Music account, reinstalled the app, installed an older version — and the problem persists.

@mvaishwarya
Copy link

Screenshot_2024-12-17-14-18-52-795_com zionhuang music
I'm facing the same issue as well and I did all the basic troubleshooting. Nothing works as of now.

@SortingFarmer
Copy link

The error also occurs for me, however I noticed that any songs that are downloaded or are in the cache are working, so I guess its something with getting the songs from youtube

@p4p1
Copy link

p4p1 commented Dec 17, 2024

Same problem here

@Techy05
Copy link

Techy05 commented Dec 17, 2024

Same issue.
I was able to play 1 song, after that no new song works. Only cached songs play fine.

@Hikari2w2
Copy link

Same problem

@183efa
Copy link

183efa commented Dec 17, 2024

Same here

@Lokilisa
Copy link

I've had the same issue but this only started the latter half of yesterday the app worked fine in the morning, also all the songs I downloaded before all work fine. I think it's the problem of fetching songs from YouTube bit idk why

@CranialTyrant
Copy link

Until the issue's resolved, I recommend using YouTube Music patched with Revanced.

@zg4real
Copy link

zg4real commented Dec 17, 2024

I have the same issue and only downloaded/cached songs play just fine other than that i get "unknown error"

@zeepfds
Copy link

zeepfds commented Dec 17, 2024

i have the same problem but only happen with songs i dont downloaded

@HARI00070777
Copy link

Plz solve it! We have faith!

@WarrenOni
Copy link

Same problem here too.
Please solve it..🥺🥺

@diam0ndkiller
Copy link

Same problem.
Seems to be on youtube's side as it appears in revanced as well but has been fixed there (https://www.reddit.com/r/revancedapp/comments/1hfr6ne/youtube_music_playback_issues_fixed/)

@josprox
Copy link

josprox commented Dec 17, 2024

It is a query error to YouTube, it seems that the API does not work correctly and returns an error as shown below.
bash { "error": { "code": 400, "message": "Precondition check failed.", "errors": [ { "message": "Precondition check failed.", "domain": "global", "reason": "failedPrecondition" } ], "status": "FAILED_PRECONDITION" } }

@ManuelBoe14
Copy link

It worked yesterday still fine for me but I am having the same issue now, it seems like Google is slowly blocking unauthorized access to their API

@LNRDshine
Copy link

Im going crazy rn, i got back to innertune two days ago (Used to use it in 2022) and this happens

@josprox
Copy link

josprox commented Dec 17, 2024

I have discovered that the error comes from the android key "ANDROID_MUSIC" which is in YoutubeCient, it is necessary to change it and you will be able to get the youtube streaming.

@jioroJI
Copy link

jioroJI commented Dec 17, 2024

We all hv the same issue at the same time... ayooo😭🙏

@RougeParrot
Copy link

I would like to highly thank the DEVs for making it happen. Please don't worry if it takes a couple days more. We love the app and the effort it took to make it. I'm honestly impressed! When I will have my degree completed in CS, I will definitely help to improve this app to its highest standard. Beautiful app. Loved it!
Request: -Pleasure make sure that the suggestions are enhanced. (I do not want those mumble Hindi songs suggestions in my dream pop, shoegaze quick picks) -If you don't mind could you please increase the bitrate to 420kb/s or more. -Please enhance the tempo and pitch controls as they seem to reduce the quality of audio, when slowed.
Thanks a lot for this ABSOLUTE MASTERPIECE!

did you think that its even possible to increase bitrate to 420kb, we can't even get 320kb in the app how's that even possible???

I am no techie. I just made a request to devs if that's possible, if yes then to increase upto it. Why don't you dump your facts somewhere else? That would also help! Thanks!

@Spaceshiprace
Copy link

Spaceshiprace commented Dec 21, 2024

I would like to highly thank the DEVs for making it happen. Please don't worry if it takes a couple days more. We love the app and the effort it took to make it. I'm honestly impressed! When I will have my degree completed in CS, I will definitely help to improve this app to its highest standard. Beautiful app. Loved it!
Request: -Pleasure make sure that the suggestions are enhanced. (I do not want those mumble Hindi songs suggestions in my dream pop, shoegaze quick picks) -If you don't mind could you please increase the bitrate to 420kb/s or more. -Please enhance the tempo and pitch controls as they seem to reduce the quality of audio, when slowed.
Thanks a lot for this ABSOLUTE MASTERPIECE!

did you think that its even possible to increase bitrate to 420kb, we can't even get 320kb in the app how's that even possible???

I am no techie. I just made a request to devs if that's possible, if yes then to increase upto it. Why don't you dump your facts somewhere else? That would also help! Thanks!

me too, i was just asking not trying make fun of you.. I was just confused with that request.

@gechoto
Copy link
Contributor

gechoto commented Dec 21, 2024

Hi. I made a PR which adds yt-dlp as a fallback to InnerTune. If you want to help with testing you can find the current debug apk here:
https://github.com/z-huang/InnerTune/actions/runs/12447733806/artifacts/2352183730

With login it has to use the new fallback now which means it will be slower and uses more data.
This is not perfect but should do it for now until someone finds something better.

@javdc
Copy link
Contributor

javdc commented Dec 21, 2024

@gechoto I made another version that uses NewPipeExtractor instead of yt-dlp and it's working really fast for me and doesn't need to do duplicate requests like your solution (one for song info and other for the stream url from yt-dlp). The only thing missing is the logged in functionality, which I suppose can be implemented adding the cookie from InnerTune to all the NewPipeExtractor requests, similar to what you do in your PR. I will try to upload it tomorrow.

@gechoto
Copy link
Contributor

gechoto commented Dec 21, 2024

@javdc cool I'm interested in seeing this. If you can get login to work with NewPipeExtractor this might be a good solution.
I only chose yt-dlp for now as a quick fix because it already supports login.

@Jwjshhi
Copy link

Jwjshhi commented Dec 22, 2024

I hope the issue will be fixed with new update. And don't forget to fix the discord rpc too in the next update. Thanks

@javdc
Copy link
Contributor

javdc commented Dec 22, 2024

Hey @gechoto, I just uploaded the PR with NewPipeExtractor, can you try it? #1772

GitHub Action finished, here is the debug apk for testing: https://github.com/z-huang/InnerTune/actions/runs/12456971205/artifacts/2353818490

@SCPF-Bot
Copy link

Hey @gechoto, I just uploaded the PR with NewPipeExtractor, can you try it? #1772

GitHub Action finished, here is the debug apk for testing: https://github.com/z-huang/InnerTune/actions/runs/12456971205/artifacts/2353818490

@javdc

Can play rated E (explicit) song which is good.
Cannot login, app crashed/force closed.

Phone: Infinix Smart 8 Pro
Arch: 32 bit.

@josprox
Copy link

josprox commented Dec 23, 2024

Hello everyone

Today, work was done on the solution for the issue when loading music with logged-in accounts. Although I was busy the last two days, I kept an eye on things and managed to dedicate at least two hours today.

Good news: Joss Red can now stream music from YouTube via the YouTube API V1 and V3, along with cookie injection. As mentioned earlier, this is a temporary solution that only supports up to 100 MB of server traffic. Exceeding that limit may affect the performance of this API.

For developers who want to integrate this method, you will need to have the OAuth login system enabled. In this case, Joss Red does this for you and caches the information.

Currently, the API allows the following actions:

1. Log in

The system will return your token and refresh token. To log in, visit the following link:
https://jossred.josprox.com/api/yt/oauth/redirect

2. YouTube Music Search

Once you've obtained successful access, you can search for anything on YouTube Music with your account. This is done using the following structure:
[https://jossred.josprox.com/api/yt/connect/search/{Search term}](https://jossred.josprox.com/api/yt/connect/search/{Search term})

Example: Searching for "8 AM" by Nicki Nicole:
https://jossred.josprox.com/api/yt/connect/search/8%20am%20nicki

3. Retrieve songs by artist ID

With the Joss Red API, you can retrieve an artist's songs using their ID. This can be done with the following structure:
[https://jossred.josprox.com/api/yt/connect/get_artist/{artist's ID}](https://jossred.josprox.com/api/yt/connect/get_artist/{artist's ID})

Example: Searching for Nicki Nicole's songs:
https://jossred.josprox.com/api/yt/connect/get_artist/UCei_d3N_YJKny96V_5-dO9w

4. Stream a song

Now, the main issue has been fixed. It is possible to obtain the streaming URL, but you need the "video ID." You can retrieve this ID using the search methods discussed earlier. In the case of Innertune, you can provide the "metaid" of the stream, as Joss Red detects whether you are using information from YouTube's API V1 or V3. Once the parameter is provided, a proxy tunnel will be created to give you a protected streaming URL, and it will return the audio as if queried from YouTube's API V1.

It's important that the ID is correct. If it's not, everything will fail, cookies will be deleted, and the device's connection will be closed to prevent detection of API usage.

The structure is as follows:
https://jossred.josprox.com/yt/stream/{metaid}

Example: A song blocked by age restrictions:
https://jossred.josprox.com/yt/stream/DEmK7tMT9LY

This will allow you to query music, but note that it may be a bit slow due to data restrictions.

Regarding Joss Music

An update will be developed to allow queries from Joss Red. This will be available as a "switch" in the app's content section, so the user can choose whether to use the Innertune version or the Joss Red version.

I hope this solution helps some forks fix this error while they continue working on correcting it in Innertune.

@ganairm
Copy link

ganairm commented Dec 23, 2024

just use metrolist guys, it works flawlessly

@ganairm
Copy link

ganairm commented Dec 23, 2024

i think innertune is abandoned as well... havent seen the dev anywhere for months, even now when the app is bugging

@Lileyy
Copy link

Lileyy commented Dec 23, 2024

Use metrolists guys, I see z-huang is a contributor there
https://github.com/mostafaalagamy/Metrolist
Give an emoticon so that other friends can see it.😉

@Spaceshiprace
Copy link

Use metrolists guys, I see z-huang is a contributor there https://github.com/mostafaalagamy/Metrolist Give an emoticon so that other friends can see it.😉

I agree. this fork is just much better, i switched to it after the bug appeared and i was stunned really it's an amazing fork, now even after this bug will be fixed, I'm keep using it
Thanks to @mostafaalagamy ♥️

@frenchy82
Copy link
Contributor

We are here to help the development of a free software by reporting bugs and helping to find the conditions for its arriva and help if you can to find a solution . This is really not the place for inappropriate promotion. I you are happy with an other software that's perfect for you

@EdgiestNickel89
Copy link

https://github.com/DD3Boh/OuterTune seems to have made a temporary fix, it's a fork of this project and they just removed the account for streaming, this means you can't access content that's restricted by account (private)

@javdc
Copy link
Contributor

javdc commented Dec 23, 2024

https://github.com/DD3Boh/OuterTune seems to have made a temporary fix, it's a fork of this project and they just removed the account for streaming, this means you can't access content that's restricted by account (private)

Yep, I just checked the code of the fork Metrolist because some people have been recommending it here and it just does the same, it removes login info to get the audio stream, so age restricted songs don't play but at least the rest works.

@EdgiestNickel89
Copy link

https://github.com/DD3Boh/OuterTune seems to have made a temporary fix, it's a fork of this project and they just removed the account for streaming, this means you can't access content that's restricted by account (private)

Yep, I just checked the code of the fork Metrolist because some people have been recommending it here and it just does the same, it removes login info to get the audio stream, so age restricted songs don't play but at least the rest works.

Is there a way I can remove the account from the app? Will that fix it? I want to play just public, none age restricted music, the only reason I even logged in was to sync my playlists

@schich02
Copy link

Use metrolists guys, I see z-huang is a contributor there https://github.com/mostafaalagamy/Metrolist Give an emoticon so that other friends can see it.😉

not working for me, says to login altough I am logged in

@schich02
Copy link

just use metrolist guys, it works flawlessly

not for me, tells me to log in although I am

@ilovemoddingappsok
Copy link

Is it fixed now? 12/24

@Lileyy
Copy link

Lileyy commented Dec 24, 2024

Use metrolists guys, I see z-huang is a contributor there https://github.com/mostafaalagamy/Metrolist Give an emoticon so that other friends can see it.😉

not working for me, says to login altough I am logged in

I wasn't logged in, initially I could play some songs until finally, the song I was playing suddenly stopped playing, and the message "unknown error" appeared.

Guys, it turns out we have to log in to be able to do it.

@gechoto
Copy link
Contributor

gechoto commented Dec 24, 2024

Is it fixed now? 12/24

Multiple approaches are in the works. You can test a build from my yt-dlp PR here:
https://github.com/z-huang/InnerTune/actions/runs/12447733806/artifacts/2352183730

There is no decision yet on what will be the final solution.

@FiresoulGamz
Copy link

Is it fixed now? 12/24

Multiple approaches are in the works. You can test a build from my yt-dlp PR here: https://github.com/z-huang/InnerTune/actions/runs/12447733806/artifacts/2352183730

There is no decision yet on what will be the final solution.

Is the link taken down. It shows page not found for me

@gechoto
Copy link
Contributor

gechoto commented Dec 24, 2024

Is the link taken down. It shows page not found for me

You have to be logged-in to download

@josprox
Copy link

josprox commented Dec 26, 2024

Hello, @gechoto :

I've noticed that you're working on a version using yt-dlp. Do you think this could be the definitive solution for the current issues?

I've been reviewing your code, and it looks like you've adapted it quite well. However, I've encountered an issue on my device: when trying to play music restricted by YouTube on its normal connection, the application crashes. I'm not sure if this is specific to my device or a general issue.

Is there anything we can assist with to help you perform additional tests?
Screenshot_20241225-205858_InnerTune Debug

@CranialTyrant
Copy link

CranialTyrant commented Dec 27, 2024

Malopieds' Innertune fork is back up and running. Signing into Google does break song playback however, so I would suggest not doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.