Malopieds / InnerTune

A fork of InnerTune, a Material 3 YouTube Music client for Android
GNU General Public License v3.0
417 stars 23 forks source link

No stream available. #178

Open Hikari2w2 opened 1 month ago

Hikari2w2 commented 1 month ago

Checklist

Steps to reproduce the bug

Expected behavior

Actual behavior

Screenshots/Screen recordings

Screenshot_2024-07-08-01-30-10-956_com malopieds innertune

Logs

I don't know how to do that

InnerTune version

0.5.7

Android version

11

Additional information

I used to be able to reproduce this song a few weeks before updating the app

Malopieds commented 1 month ago

It plays fine for me. What is the id of the song (check in both YouTube and YouTube music)? Backup and restore the database.

Hikari2w2 commented 1 month ago

It plays fine for me. What is the id of the song (check in both YouTube and YouTube music)? Backup and restore the database.

Screenshot_2024-07-08-11-11-54-281_com.malopieds.innertune.jpg

This is the ID song, I checked the song on yt music, and it's playing properly, it might be a bug from my app, I'll try to backup and restore the database, thanks for your reply.

Malopieds commented 1 month ago

My guess is that you played it from a playlist? Try to play it from an online search and after this try to play it from the playlist. I might have understood why.

malisipi commented 1 month ago

I can reproduce the bug. When you encounter a rate limit of YouTube, YouTube will give no stream (or invalid streams). And the InnerTube will cache the invalid state and will show a warning about no stream every try.

To reproduce it, you may try to download a lot of playlists that have a lot of songs (and ensure the songs are not cached) and some songs would not be downloaded due to the rate limit. And you should be able to reproduce the issue.

Also clearing song/cover cache is not fixing the bug. Since I need to lose my downloaded song, I cannot try to reset the InnerTune.

It is also related to https://github.com/Malopieds/InnerTune/issues/170 . Since those songs throw no stream always, those songs cannot download or play on the application.

Also I think it is also related with https://github.com/Malopieds/InnerTune/issues/174 and https://github.com/Malopieds/InnerTune/issues/83 .

Lastly, I thank you for your efforts. ❤️

Hikari2w2 commented 1 month ago

My guess is that you played it from a playlist? Try to play it from an online search and after this try to play it from the playlist. I might have understood why.

Hey, thank you for you reply. i tried by playing my song from link instead of playlist but my issue wasn't solved.

I tried resetting Innertune from scratch with no backup and downloading-playing my songs, and that worked - I was able to reproduce my songs. However, things went wrong when I imported my Innertune backup again. After importing the backup, some songs just won't reproduce or download at all. I've tried clearing the cache, downloads, and image cache, but that hasn't solved the problem.

I think my backup might be corrupted or something, but I really don't want to lose my history and likes. I hope i was able to convey my issue, since my English is not very good.

darumanzane commented 1 month ago

Adding to all that, I realized that songs with explicit tittles will present a similar issue. I made a playlist to track which songs aren't available, and a lot of them have similar explicit words in them.

Screenshot_2024-07-11-15-28-52-445_com zionhuang music

malisipi commented 1 month ago

Adding to all that, I realized that songs with explicit tittles will present a similar issue. I made a playlist to track which songs aren't available, and a lot of them have similar explicit words in them.

I tested some of songs and i get same error exactly. The songs can not be played or downloaded. However the songs is not throwing "no streams available" bug. Player is awaiting forever.

darumanzane commented 1 month ago

Yes! I've noticed is a different kind of error, but with the same result (not available to play or download). Some songs just keep loading until it fails and shows the red icon.

However, is remarkable that this kind of "error song" behaves differently than the "no stream available song", since the later never seems to change. On the contrary, the "error song" can be played and eventually downloaded if you keep coming back to it and try again. Don't know how or why it works if you keep coming back to it, but in some cases it works.

Malopieds commented 1 month ago

Could anyone provide a backup with a reproducible no stream available?

darumanzane commented 1 month ago

I have a backup with that playlist I mentioned earlier. It was made in the v0.5.6, btw.

InnerTune_11julio2024.zip

Some songs are consistently not available, regardless of the version of the app. But there's other songs that present the issue randomly.

The only way I have managed to fix them is creating a backup, uninstalling the app, install it again and downloading the "no stream available songs" before restoring the backup. But that doesn't fix the problem at is core, since everytime I re-install the app, new songs present the issue at random, plus I have to (try) download or play every single song again, which is sush a time consuming task, and the bigger the library, the more impractical this non-fix results.

d4f5409d commented 1 month ago

Same issue here v0.5.7

Hikari2w2 commented 1 month ago

Could anyone provide a backup with a reproducible no stream available?

I can also provide my backup, however my backup contains my google account information, so, i can share my backup if you provide me an email address only.

anxiouslelimo commented 1 month ago

@Malopieds https://github.com/Malopieds/InnerTune/issues/87#issuecomment-2118665632 backup for a similar issue.

Malopieds commented 7 hours ago

Hi all, I've made a debug version, it includes a try fix for this issue, could anyone try it and tell me?

I made a playlist to track which songs aren't available, and a lot of them have similar explicit words in them.

Related to #174 rather than this issue

darumanzane commented 2 hours ago

Hi. I just tried it and it kinda worked: only 6 of 45 songs of the playlist I have for this issue actually downloaded. These are the ones: IMG-20240823-WA0000 The 39 remaining songs still present the same issue. Just to clarify: I did use a backup of my most recent data (created in the v0.5.9), don't know if that is a relevant factor for any of this.

Malopieds commented 2 hours ago

Those songs are age restricted you should not be able to download them actually. Are you logged in? My question was do you still have the issue "No stream available"? If no I close this issue. There is already another issue about downloading songs that doesn't work.

darumanzane commented 53 minutes ago

I don't know how to differentiate between "age restricted songs" and "no stream available songs", cause both types show the same text. In any case, of those 39 songs only around half got explicit tittles, so I guess the rest are the "no stream available" type and still doesn't work. I'm not logged in. Does that fix something? Also, can you share the other issue related to this one? thankyou

Malopieds commented 50 minutes ago

I don't know how to differentiate between "age restricted songs" and "no stream available songs", cause both types show the same text.

No they don't. No stream available show "No stream available" and age restricted songs show "Unknown error".

so I guess the rest are the "no stream available" type and still doesn't work.

Can you click on them and show me what happens?

I'm not logged in. Does that fix something?

No.

Also, can you share the other issue related to this one? thankyou

170