mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 01:15:55 +03:00
[GH-ISSUE #78] Failing to start playing with a large number of tracks #960
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#960
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mariabug on GitHub (Sep 6, 2022).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/78
Hi, I have been having an small issue with spotify-player. For some reason when I hit play in my liked tracks nothing plays at all. However if I was already playing the liked tracks playlist in some other device, like my phone, and then just change to spotify-player, the playlist continue without any hitch, which is the roundabout I have been using.
Here is the log:
spotify-player-22-09-06-11:51.log
@aome510 commented on GitHub (Sep 7, 2022):
Hi @mariabug. Thanks for reporting. Judging from the log, it seems like the app couldn't start a playback [1] with too many tracks:
I'm not so sure how the official app handles this, maybe it uses an internal API different from what's exposed to the public. I'll think about implementing a hack to handle this case.
[1]: https://developer.spotify.com/documentation/web-api/reference/#/operations/start-a-users-playback
@Rinkerbel commented on GitHub (Sep 17, 2022):
Hey, just wanna say I'm experiencing the same thing.
If you really wanna listen to your liked songs, I've found a way to do it.
Trying to see the songs context won't work tho
@aome510 commented on GitHub (Sep 17, 2022):
Yeah, currently it's the only workaround to start liked song playback (with a large number of songs).
Official Spotify client seems to implement a custom playback context for liked songs. So using the
get_contextAPI to show the playing context won't work. This is similar to their queue playback context, e.g no public API to access.One way to resolve this issue is actually implementing a custom context like Spotify did. However, it will be quite complicated, and I don't have much time to support that now. Contributions are welcome though 💪
In the meantime, hope that the above workaround is good enough
@alexseitsinger commented on GitHub (Oct 22, 2022):
I am also dealing with this issue.
Is there no way to limit the number of track ids to the tracks that are visible in the ui or something similar? perhaps just limit track ids to a number with each scroll?
@aome510 commented on GitHub (Dec 26, 2022):
@alexseitsinger @mariabug @Rinkerbel, sorry for the delay. This issue should be fixed in https://github.com/aome510/spotify-player/releases/tag/v0.10.0. Feel free to reopen this issue if encounter any related issues.
I implemented the fix by restricting the number of tracks playing, e.g only play 200 tracks surround the selected track when starting a new playback.