Use filename as title for bg-music from bg-music-folder.
This commit is contained in:
1 parent
c9a2c9404c
commit
dd427e9c47
3 files changed
+6
-3
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -120,7 +120,10 @@ namespace Vocaluxe.Base
|
|||||||
{
|
{
|
||||||
get
|
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)
|
if (_Song != null)
|
||||||
return _Song.Title;
|
return _Song.Title;
|
||||||
|
|
||||||
return "Unknown";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -530,7 +533,7 @@ class PlaylistElement
|
|||||||
if (_Song != null)
|
if (_Song != null)
|
||||||
return _Song.Artist;
|
return _Song.Artist;
|
||||||
|
|
||||||
return "Unknown";
|
return "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user