diff options
author | Max Kellermann <max@duempel.org> | 2008-10-15 22:35:13 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-15 22:35:13 +0200 |
commit | 8c0060fae44a94bdfe978d8d4a66589f5a03a074 (patch) | |
tree | fde581584c25e5e74d8a8336f54dc61d4a5f67db /src/song.h | |
parent | 0b44cad2ce2c6433f395650a5a70cf8b3473673c (diff) |
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.
Diffstat (limited to 'src/song.h')
-rw-r--r-- | src/song.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |