Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

YT song playback fails #416

Open
4 tasks done
Cookiemonster75 opened this issue Dec 15, 2024 · 22 comments
Open
4 tasks done

YT song playback fails #416

Cookiemonster75 opened this issue Dec 15, 2024 · 22 comments
Labels

Comments

@Cookiemonster75
Copy link

Checklist

  • I am able to reproduce the bug with the latest debug version (Android, Linux, Windows)
  • 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

Click download and nothing happens. When I force stop the app and reopen I get the error.

Expected behavior

Should download the song

Actual behavior

Nothing then error

Screenshots / recordings

java.lang.RuntimeException: No valid formats returned by getVideoFormats(IeW9F4sGzf0)
at com.toasterofbread.spmp.model.mediaitem.song.SongAudioQualityKt.getSongFormats(Unknown Source:134)
at com.toasterofbread.spmp.model.mediaitem.song.SongAudioQualityKt$getSongFormats$1.invokeSuspend(Unknown Source:10)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:106)
at androidx.concurrent.futures.ToContinuation.run(Unknown Source:11)
at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:92)

Logs

java.lang.RuntimeException: No valid formats returned by getVideoFormats(IeW9F4sGzf0)
at com.toasterofbread.spmp.model.mediaitem.song.SongAudioQualityKt.getSongFormats(Unknown Source:134)
at com.toasterofbread.spmp.model.mediaitem.song.SongAudioQualityKt$getSongFormats$1.invokeSuspend(Unknown Source:10)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:106)
at androidx.concurrent.futures.ToContinuation.run(Unknown Source:11)
at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:92)

SpMp version

0.4.2

SpMp platform

Android

OS version

Android 15

Additional information

None

@toasterofbread
Copy link
Owner

Which commit did you test this with?

@Cookiemonster75
Copy link
Author

This is the very latest build.

@Cookiemonster75
Copy link
Author

This is the notification which keeps popping up -

java.lang.RuntimeException: No valid formats returned by getVideoFormats(IeW9F4sGzf0)
at com.toasterofbread.spmp.model.mediaitem.song.SongAudioQualityKt.getSongFormats(Unknown Source:134)
at com.toasterofbread.spmp.model.mediaitem.song.SongAudioQualityKt$getSongFormats$1.invokeSuspend(Unknown Source:10)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(Unknown Source:8)
at kotlinx.coroutines.DispatchedTask.run(Unknown Source:106)
at androidx.concurrent.futures.ToContinuation.run(Unknown Source:11)
at kotlinx.coroutines.scheduling.TaskImpl.run(Unknown Source:2)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(Unknown Source:92)

@toasterofbread
Copy link
Owner

Please confirm which commit you've tested. There have been a lot of changes recently around stream fetching (due to YouTube's changes) so I just want to be sure.

@Cookiemonster75
Copy link
Author

I am on commit 415.

@toasterofbread
Copy link
Owner

What do you mean by 415? Could you provide a commit hash or link?

@Cookiemonster75
Copy link
Author

I thought it was maybe my storage access but I cleared app data and reinstalled.

@Cookiemonster75
Copy link
Author

@gelimorto2
Copy link

Yeah same to me

@toasterofbread
Copy link
Owner

toasterofbread commented Dec 26, 2024

This is an ongoing issue caused by YouTube constantly changing their API and making it harder for third-party clients to stream audio. There's currently no consistent solution I know of, and even if I did it probably wouldn't work in a few weeks.

Potential workaround:

  1. Make sure you're using the latest nightly build on the main branch
  2. If that doesn't work out of the box, switch the song stream method to NewPipe and/or enable stream method fallbacks
  3. If that doesn't work and you're signed in to YTM, try signing out and restarting the app, and use the Youtubei stream method

Will keep this issue open.

@toasterofbread toasterofbread changed the title Download fails No valid formats returned by getVideoFormats Dec 26, 2024
@toasterofbread
Copy link
Owner

See also: TeamNewPipe/NewPipe#11139

Repository owner deleted a comment from ZZMM1409 Dec 28, 2024
@Samad-31
Copy link

Samad-31 commented Jan 6, 2025

Use Newpipe as play/download

@MD77MD

This comment has been minimized.

@toasterofbread toasterofbread marked this as a duplicate of #447 Jan 27, 2025
@toasterofbread toasterofbread marked this as a duplicate of #448 Jan 29, 2025
@toasterofbread toasterofbread changed the title No valid formats returned by getVideoFormats Song playback failing Jan 31, 2025
@toasterofbread toasterofbread marked this as a duplicate of #449 Jan 31, 2025
@toasterofbread toasterofbread changed the title Song playback failing YT song playback fails Jan 31, 2025
@coder-eb
Copy link

coder-eb commented Feb 5, 2025

Use Newpipe as play/download

Which version are you using?

@Samad-31
Copy link

Samad-31 commented Feb 5, 2025

Use Newpipe as play/download

Which version are you using?

Latest available on f droid

@kairusds
Copy link
Contributor

kairusds commented Feb 6, 2025

What about a client switcher like the one from Musify?

@coder-eb
Copy link

coder-eb commented Feb 6, 2025

Use Newpipe as play/download

Which version are you using?

Latest available on f droid

Is it working for you? I'm using the same version but it does not load.

@toasterofbread
Copy link
Owner

The latest release (on all platforms) is practically ancient, I'd recommend using a nightly build.

@coder-eb
Copy link

coder-eb commented Feb 6, 2025

The latest release (on all platforms) is practically ancient, I'd recommend using a nightly build.

It's working in the nightly build. Awesome!

@kairusds
Copy link
Contributor

kairusds commented Feb 6, 2025

The latest release (on all platforms) is practically ancient, I'd recommend using a nightly build.

It's working in the nightly build. Awesome!

Can confirm it's also working, though I had to relogin with YT Music and wait for a few seconds for songs to load.

@Newbytee
Copy link

Newbytee commented Feb 9, 2025

The latest release (on all platforms) is practically ancient, I'd recommend using a nightly build.

Are there any plans to make a new release soon then? I don't see any way of installing nightly as a Flatpak short of building it myself.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants