spmp
spmp copied to clipboard
YT song playback fails
Checklist
- [X] I am able to reproduce the bug with the latest debug version (Android, Linux, Windows)
- [X] I've checked that there is no open or closed issue about this bug.
- [X] This issue contains only one bug.
- [X] 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
Which commit did you test this with?
This is the very latest build.
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)
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.
I am on commit 415.
What do you mean by 415? Could you provide a commit hash or link?
I thought it was maybe my storage access but I cleared app data and reinstalled.
Sorry if I sound a bit silly. https://github.com/toasterofbread/spmp/actions/runs/12333875235
Yeah same to me
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:
- Make sure you're using the latest nightly build on the main branch
- If that doesn't work out of the box, switch the song stream method to NewPipe and/or enable stream method fallbacks
- 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.
See also: https://github.com/TeamNewPipe/NewPipe/issues/11139
Use Newpipe as play/download
here is a summery of what's going on:
-
if you chose to download to spmp library , it will download in mp4 format. (only one song per app lunch )
-
but if you chose to download to a custom location , it will download into m4p format but woth (0) Byte.
-
if you want to download multiple songs, you must force close and relunch the app before every song download ... does the Continuous permanently looping download notification have to do anything with this?
-
Download only works with youtubei and newpipe, does not work with piped Api... streaming works with all.
-
when downloading a song, spmp loss its link with previous song. so it shows the correct thumbnail of the last download song in Library> download songs section. (almost like it writes over the previous song)
-
vpn has no effect on this issue
-
was not logged in when testing, however I was experiencing these issues when I was logged in.
using Nightly 2025-01-08 15:45:19
(Potentially) relevant links for future reference:
- https://github.com/yt-dlp/yt-dlp/issues/11868
- https://github.com/gsuberland/UMP_Format/blob/main/UMP_Format.md
- https://tyrrrz.me/blog/reverse-engineering-youtube-revisited
- https://github.com/iv-org/inv_sig_helper/blob/614e2e2b497f54054310571ed03733b408a1ecc1/src/consts.rs
- https://discord.com/channels/1133321339495788625/1133321340393361431/1334645934906277971
I've made several attempts to work around this issue, nothing seems to work on my IP.
![]()
Use Newpipe as play/download
Which version are you using?
Use Newpipe as play/download
Which version are you using?
Latest available on f droid
What about a client switcher like the one from Musify?
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.
The latest release (on all platforms) is practically ancient, I'd recommend using a nightly build.
The latest release (on all platforms) is practically ancient, I'd recommend using a nightly build.
It's working in the nightly build. Awesome!
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.
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.
In my case, it takes 10 minutes or so for the first song to play, then it works properly for a while (15 min or so)
is this app dead or what? other streaming apps are already fixed and updated ... i prefer this app but what's the point if its not working
Have you tried nightly build?
Can you provide example of the other apps that got it fixed? It might help as reference
On Fri, 14 Mar 2025, 20:30 MD77MD, @.***> wrote:
is this app dead or what? other streaming apps are already fixed and updated ... i prefer this app but what's the point if its not working
— Reply to this email directly, view it on GitHub https://github.com/toasterofbread/spmp/issues/416#issuecomment-2724718423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALAHSPSRRECP7HRVLKN3DT2ULKXHAVCNFSM6AAAAABTT7YJPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRUG4YTQNBSGM . You are receiving this because you are subscribed to this thread.Message ID: @.***> [image: MD77MD]MD77MD left a comment (toasterofbread/spmp#416) https://github.com/toasterofbread/spmp/issues/416#issuecomment-2724718423
is this app dead or what? other streaming apps are already fixed and updated ... i prefer this app but what's the point if its not working
— Reply to this email directly, view it on GitHub https://github.com/toasterofbread/spmp/issues/416#issuecomment-2724718423, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALAHSPSRRECP7HRVLKN3DT2ULKXHAVCNFSM6AAAAABTT7YJPOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRUG4YTQNBSGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Can you provide example of the other apps that got it fixed? It might help as reference
This would be appreciated. I'm not actively maintaining SpMp at the moment, but if an actual fix is discovered I'll probably implement it.
The main branch should be working with NewPipeExtractor at the moment, as that was updated recently.
The main branch should be working with NewPipeExtractor at the moment, as that was updated recently.
Newpipe playback on latest nightly (from few minutes ago, 5a76563) still broken for me
@toasterofbread from my testing harmony music from F-droid is working
When you get a new version of spmp?
are there any.plans to fix this soon.... please let us know weather to keep the app or not
Use Newpipe as play/download