Use filename as title for bg-music from bg-music-folder.

This commit is contained in:
Florian Kuepper committed 2012-12-02 22:44:08 +01:00
1 parent c9a2c9404c
commit dd427e9c47
3 files changed
+6 -3

No files matched your search

+6 -3
View File
@@ -120,7 +120,10 @@ namespace Vocaluxe.Base
{
get
{
return _CurrentPlaylistElement.Artist + " - " + _CurrentPlaylistElement.Title;
if (_CurrentPlaylistElement.Artist != "" && _CurrentPlaylistElement.Title != "")
return _CurrentPlaylistElement.Artist + " - " + _CurrentPlaylistElement.Title;
else
return Path.GetFileNameWithoutExtension(_CurrentPlaylistElement.MusicFilePath);
}
}
@@ -519,7 +522,7 @@ class PlaylistElement
if (_Song != null)
return _Song.Title;
return "Unknown";
return "";
}
}
@@ -530,7 +533,7 @@ class PlaylistElement
if (_Song != null)
return _Song.Artist;
return "Unknown";
return "";
}
}