You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see 2 ways of fixing this - simple and kinda complicated.
Simple is one is just checking queue for items - if there is no items[] in queue, so return error on /api/v1/play that there is no songs
Other way is checking if videoId in current song info (/api/v1/song) is presented in queue, but I'm not sure about queue structure since it looks kinda spaghetti raw JSON
The text was updated successfully, but these errors were encountered:
Preflight Checklist
YouTube Music (Application) Version
3.7.1
Checklists
What operating system are you using?
Windows
Operating System Version
Windows 11 24H2
What CPU architecture are you using?
x64
Last Known Working YouTube Music (Application) version
No response
Reproduction steps
API server should be enabled
Expected Behavior
I think it should be unavailable to launch song since there's no songs in queue.
Actual Behavior
Sending request launches last played song after dismissing queue. It is showed by sending /api/v1/song
But at same moment queue is empty
Enabled plugins
Additional Information
I see 2 ways of fixing this - simple and kinda complicated.
Simple is one is just checking queue for items - if there is no
items[]
in queue, so return error on /api/v1/play that there is no songsOther way is checking if
videoId
in current song info (/api/v1/song
) is presented in queue, but I'm not sure about queue structure since it looks kinda spaghetti raw JSONThe text was updated successfully, but these errors were encountered: