mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-26 04:49:18 -05:00
[spotify] Ignore playlist updates with missing uri
This commit is contained in:
parent
8ee3ef5b15
commit
66bbcf0576
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user