diff options
author | Max Kellermann <max@duempel.org> | 2014-01-18 18:20:54 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-21 21:06:56 +0100 |
commit | 5d4b450c52b3af92a03a8380a40dc703f0df4233 (patch) | |
tree | 9f861173b3861c544670dfb3f38b436902f67b63 /src/PlaylistSave.cxx | |
parent | 483b1f51c96303f2b587870cce6803cc6f699158 (diff) |
DetachedSong: add attribute "real_uri"
Prepare for UPnP songs that retain there database identity.
Diffstat (limited to 'src/PlaylistSave.cxx')
-rw-r--r-- | src/PlaylistSave.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PlaylistSave.cxx b/src/PlaylistSave.cxx index 5f5b3e20d..8eeab0f62 100644 --- a/src/PlaylistSave.cxx +++ b/src/PlaylistSave.cxx @@ -38,7 +38,8 @@ void playlist_print_song(FILE *file, const DetachedSong &song) { - if (playlist_saveAbsolutePaths && song.IsInDatabase()) { + if (playlist_saveAbsolutePaths && + song.IsInDatabase() && song.IsFile()) { const auto path = map_song_fs(song); if (!path.IsNull()) fprintf(file, "%s\n", path.c_str()); |