browser: support operations on m3u playlists not created by mpd

This commit is contained in:
Andrzej Rybczak
2010-06-26 22:50:28 +02:00
parent 2b2c6a89ad
commit 4d406c85f2
6 changed files with 11 additions and 11 deletions

View File

@@ -552,7 +552,7 @@ std::string Browser::ItemToString(const MPD::Item &item, void *)
{
if (item.song)
return "[..]";
return "[" + ExtractTopDirectory(item.name) + "]";
return "[" + ExtractTopName(item.name) + "]";
}
case MPD::itSong:
{
@@ -563,7 +563,7 @@ std::string Browser::ItemToString(const MPD::Item &item, void *)
}
case MPD::itPlaylist:
{
return Config.browser_playlist_prefix.Str() + item.name;
return Config.browser_playlist_prefix.Str() + ExtractTopName(item.name);
}
default:
{