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) | |
download | mpd-8c0060fae44a94bdfe978d8d4a66589f5a03a074.tar.gz mpd-8c0060fae44a94bdfe978d8d4a66589f5a03a074.tar.xz mpd-8c0060fae44a94bdfe978d8d4a66589f5a03a074.zip |
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 '')
-rw-r--r-- | src/song.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/song.h b/src/song.h index 6016b8d93..e5413fb17 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 |