-
Notifications
You must be signed in to change notification settings - Fork 38
Player.progress_ms is only set once and not updated #38
Comments
Spotify does have a real time [audio] streaming api, unfortunately its not official nor public and the only ways to interact with it would be through a depreciated libspotify, a mopidy server running the spotify plugin (which uses c bindings to libspotify under the hood) or one of the librespot solutions (or spotifyd). I am currently working on an offline branch that adds regarding this issue however I'm happy with just replacing |
Glad to hear that you are working on a streaming branch! (Oh and btw thanks for this awesome and open python module 🎉) In the |
Sounds good, I can get these changes in today, or are you keen on PR'ing this yourself? |
Go for it, I am not keen on this PR |
Player.progress_ms
is only set when the player is initialised. After the initialization the value will stay the same.Expected behaviour: The
progress_ms
should always be the current valueI would propose one of the following:
progress_ms
at all. It is not really needed as the progress can easily be obtained withUser.currently_playing()['progress_ms']
@property
to fetch the current progressprogress_ms
value with a coroutine for the websocket.I think option 3 would be the best way. However it does not look like it will come soon.
The text was updated successfully, but these errors were encountered: