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

master
Andrzej Rybczak 18 years ago
parent e5e4734b0e
commit f5fd4fb37e
  1. 2
      src/song.cpp

@ -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

Loading…
Cancel
Save