Is your feature request related to a problem? Please describe.
A minor problem. When login with cached credentials and store_credentials is true in call to Session::connect() the file with cached credentials is written every time Session::connect() is called. The contents of the file usually do not change with these writes.
Describe the solution you'd like
The file with cached credentials should be written only if cached credentials have changed (have been updated by Spotify).
Is your feature request related to a problem? Please describe. A minor problem. When login with cached credentials and
store_credentials
istrue
in call toSession::connect()
the file with cached credentials is written every timeSession::connect()
is called. The contents of the file usually do not change with these writes.Describe the solution you'd like The file with cached credentials should be written only if cached credentials have changed (have been updated by Spotify).
Describe alternatives you've considered Set
store_credentials
tofalse
and use code that writes credentials to cache if they are changed. https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/blob/ea26d0d6d50bc0fd394c8934b14d18266671264b/audio/spotify/src/common.rs#L162Additional context Problem was noticed in: https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1195