if item is stream, check if name is set and if it is, display it instead of url
This commit is contained in:
@@ -123,7 +123,7 @@ string Song::GetFile() const
|
|||||||
|
|
||||||
string Song::GetName() 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
|
string Song::GetDirectory() const
|
||||||
|
|||||||
Reference in New Issue
Block a user