mirror of
https://github.com/owntone/owntone-server.git
synced 2025-03-13 21:12:56 -04:00
[spotify] Move purge so Spotify files get cleared even on empty .spotify (closes #219)
This commit is contained in:
parent
e08b91d6ca
commit
5f2fe87351
@ -1383,8 +1383,6 @@ logged_in(sp_session *sess, sp_error error)
|
||||
|
||||
DPRINTF(E_LOG, L_SPOTIFY, "Login to Spotify succeeded. Reloading playlists.\n");
|
||||
|
||||
db_spotify_purge();
|
||||
|
||||
pl = fptr_sp_session_starred_create(sess);
|
||||
fptr_sp_playlist_add_callbacks(pl, &pl_callbacks, NULL);
|
||||
|
||||
@ -2058,6 +2056,8 @@ spotify_login(char *path)
|
||||
char *password;
|
||||
int ret;
|
||||
|
||||
db_spotify_purge();
|
||||
|
||||
if (!g_sess)
|
||||
{
|
||||
if (!g_libhandle)
|
||||
|
Loading…
x
Reference in New Issue
Block a user