[spotify] Ignore playlist updates with missing uri

This commit is contained in:
chme 2017-01-06 16:33:04 +01:00
parent 8ee3ef5b15
commit 66bbcf0576

View File

@ -2321,6 +2321,12 @@ scan_playlist(const char *uri)
memset(&request, 0, sizeof(struct spotify_request)); memset(&request, 0, sizeof(struct spotify_request));
if (0 == spotifywebapi_playlist_start(&request, uri, &playlist)) if (0 == spotifywebapi_playlist_start(&request, uri, &playlist))
{
if (!playlist.uri)
{
DPRINTF(E_LOG, L_SPOTIFY, "Got playlist with missing uri for path:: '%s'\n", uri);
}
else
{ {
DPRINTF(E_DBG, L_SPOTIFY, "Got playlist: '%s' (%s) \n", playlist.name, playlist.uri); DPRINTF(E_DBG, L_SPOTIFY, "Got playlist: '%s' (%s) \n", playlist.name, playlist.uri);
@ -2344,6 +2350,7 @@ scan_playlist(const char *uri)
db_transaction_end(); db_transaction_end();
} }
}
spotifywebapi_request_end(&request); spotifywebapi_request_end(&request);