devgianlu / go-librespot

Yet another open source Spotify client, written in Go.
GNU General Public License v3.0
70 stars 14 forks source link

When resuming partially viewed podcasts they restart #62

Open ironcrafter54 opened 1 month ago

ironcrafter54 commented 1 month ago

When I go to finish listening to a podcast instead of starting playback where I left off it starts at the beginning. -FYI I am using go-librespot through volumio.

devgianlu commented 4 weeks ago

Interestingly enough the official player does not seem to send us the position to start from. This probably needs to be fetched separately, most likely from the extended metadata endpoints. It will require some work.

ironcrafter54 commented 2 weeks ago

FYI librespot seems to have this figured out as I do not see the issue when using that program. Although then I run into the other issue of librespot not updating spotify with how much I listened to the podcast, but luckily I believe this project fixes that issue.

ironcrafter54 commented 2 weeks ago

I am no rust programmer but this https://github.com/librespot-org/librespot/blob/dev/protocol/proto/unfinished_episodes_request.proto as well as this https://github.com/librespot-org/librespot/tree/dev/protocol/proto/played_state may give someone more knowledgable in go than me a starting off point. As it seems to be some of the code librespot uses to figure out the state of a episode.