From 83ac327d7f5e45157bb01e2d2196467b474a0e85 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 28 Oct 2023 17:37:57 +0200 Subject: [PATCH] [spotify] Don't log error if a playlist is empty Fixes #1676 --- src/library/spotify_webapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/library/spotify_webapi.c b/src/library/spotify_webapi.c index 0e3c2470..de48b40e 100644 --- a/src/library/spotify_webapi.c +++ b/src/library/spotify_webapi.c @@ -1739,8 +1739,8 @@ saved_playlist_add(json_object *item, int index, int total, enum spotify_request if (!playlist.uri || !playlist.name || playlist.tracks_count == 0) { - DPRINTF(E_LOG, L_SPOTIFY, "Ignoring playlist '%s' with %d tracks (%s)\n", playlist.name, playlist.tracks_count, playlist.uri); - return -1; + DPRINTF(E_INFO, L_SPOTIFY, "Ignoring playlist '%s' with %d tracks (%s)\n", playlist.name, playlist.tracks_count, playlist.uri); + return 0; // Ignore } map_playlist_to_pli(&pli, &playlist);