Skip to content

Commit

Permalink
[library] Remove false log warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ejurgensen committed Nov 25, 2023
1 parent 35a7307 commit f0df3f2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,8 @@ library_playlist_save(struct playlist_info *pli)
return -1;
}

if (!pli->directory_id || !pli->virtual_path)
{
// Missing informations for virtual_path and directory_id (may) lead to misplaced appearance in mpd clients
DPRINTF(E_WARN, L_LIB, "Playlist with missing values (path='%s', directory='%d', virtual_path='%s')\n",
pli->path, pli->directory_id, pli->virtual_path);
}
// Missing virtual_path and directory_id (may) lead to misplaced appearance in
// mpd clients, but for e.g. spotify:playlistfolder they will not be set

if (pli->id == 0)
return db_pl_add(pli);
Expand Down

0 comments on commit f0df3f2

Please sign in to comment.