summaryrefslogtreecommitdiff
path: root/src/Mapper.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 09:18:33 +0100
committerMax Kellermann <max@duempel.org>2014-01-21 21:08:11 +0100
commit7471f65d952336ec18fba4c057b864615a5ce89b (patch)
treed9856c1c291716a727e93e3882b5b45c4bdc6573 /src/Mapper.cxx
parent5d4b450c52b3af92a03a8380a40dc703f0df4233 (diff)
LightSong: add attribute "real_uri"
The UPnP database plugin can now show relative song URIs for remote songs.
Diffstat (limited to 'src/Mapper.cxx')
-rw-r--r--src/Mapper.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mapper.cxx b/src/Mapper.cxx
index c9ef4316b..f29fd0646 100644
--- a/src/Mapper.cxx
+++ b/src/Mapper.cxx
@@ -223,7 +223,7 @@ map_song_detach(const LightSong &song)
{
DetachedSong detached(song);
- if (detached.IsInDatabase()) {
+ if (detached.IsInDatabase() && !detached.HasRealURI()) {
const auto uri = song.GetURI();
detached.SetRealURI(PathTraitsUTF8::Build(music_dir_utf8.c_str(),
uri.c_str()));