DetachedSong: add attribute "real_uri"

Prepare for UPnP songs that retain there database identity.
This commit is contained in:
Max Kellermann
2014-01-18 18:20:54 +01:00
parent 483b1f51c9
commit 5d4b450c52
7 changed files with 62 additions and 11 deletions

View File

@@ -130,7 +130,7 @@ DetachedSong::Update()
{
if (IsAbsoluteFile()) {
const AllocatedPath path_fs =
AllocatedPath::FromUTF8(uri.c_str());
AllocatedPath::FromUTF8(GetRealURI());
struct stat st;
if (!StatFile(path_fs, st) || !S_ISREG(st.st_mode))