[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");
|
DPRINTF(E_LOG, L_SPOTIFY, "Login to Spotify succeeded. Reloading playlists.\n");
|
||||||
|
|
||||||
db_spotify_purge();
|
|
||||||
|
|
||||||
pl = fptr_sp_session_starred_create(sess);
|
pl = fptr_sp_session_starred_create(sess);
|
||||||
fptr_sp_playlist_add_callbacks(pl, &pl_callbacks, NULL);
|
fptr_sp_playlist_add_callbacks(pl, &pl_callbacks, NULL);
|
||||||
|
|
||||||
|
@ -2058,6 +2056,8 @@ spotify_login(char *path)
|
||||||
char *password;
|
char *password;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
db_spotify_purge();
|
||||||
|
|
||||||
if (!g_sess)
|
if (!g_sess)
|
||||||
{
|
{
|
||||||
if (!g_libhandle)
|
if (!g_libhandle)
|
||||||
|
|
Loading…
Reference in New Issue