From f5fd4fb37ea42cbb2d79504fc945b28d29f86372 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Tue, 4 Nov 2008 17:39:37 +0100 Subject: [PATCH] if item is stream, check if name is set and if it is, display it instead of url --- src/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/song.cpp b/src/song.cpp index fb8e3b28..9b3822c1 100644 --- a/src/song.cpp +++ b/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