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

No valid formats returned by getVideoFormats #416

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

No valid formats returned by getVideoFormats #416

Cookiemonster75 opened this issue Dec 15, 2024 · 11 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

Sorry if I sound a bit silly. https://github.com/toasterofbread/spmp/actions/runs/12333875235

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants