From 8c0060fae44a94bdfe978d8d4a66589f5a03a074 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 15 Oct 2008 22:35:13 +0200 Subject: playlist: added support for adding songs not in the music database Clients which have authenticated via unix socket may add local files to the MPD playlist, provided that they own the file. --- src/song.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/song.h') diff --git a/src/song.h b/src/song.h index 6016b8d9..e5413fb1 100644 --- a/src/song.h +++ b/src/song.h @@ -76,7 +76,7 @@ song_in_database(const struct song *song) static inline bool song_is_file(const struct song *song) { - return song_in_database(song); + return song_in_database(song) || song->url[0] == '/'; } #endif -- cgit v1.2.3