if item is stream, check if name is set and if it is, display it instead of url

This commit is contained in:
Andrzej Rybczak
2008-11-04 17:39:37 +01:00
parent e5e4734b0e
commit f5fd4fb37e

View File

@@ -123,7 +123,7 @@ string Song::GetFile() const
string Song::GetName() const
{
return !itsSong->file ? (itsGetEmptyFields ? "" : EMPTY_TAG) : (itsSlash != string::npos && !isStream ? string(itsSong->file).substr(itsSlash+1) : itsSong->file);
return !itsSong->file ? (itsGetEmptyFields ? "" : EMPTY_TAG) : (itsSlash != string::npos && !isStream ? string(itsSong->file).substr(itsSlash+1) : (isStream && itsSong->name ? itsSong->name : itsSong->file));
}
string Song::GetDirectory() const