Changes to the song's metadata reflect in the database. Now the location on the filesystem has to match the updated metadata. #37

This commit is contained in:
amazing-username
2019-05-20 08:57:24 -04:00
parent ada7939866
commit e30f80d7d5
+11 -2
View File
@@ -753,8 +753,17 @@ namespace Icarus.Controllers.Managers
var info = string.Empty;
if ((string.IsNullOrEmpty(newAlbumTitle) || string.IsNullOrEmpty(newAlbumArtist) ||
oldAlbumTitle.Equals(newAlbumTitle) || oldAlbumArtist.Equals(newAlbumArtist)))
if (string.IsNullOrEmpty(newAlbumArtist))
{
newAlbumArtist = oldAlbumArtist;
}
if (string.IsNullOrEmpty(newAlbumTitle))
{
newAlbumTitle = oldAlbumTitle;
}
if ((string.IsNullOrEmpty(newAlbumTitle) && string.IsNullOrEmpty(newAlbumArtist) ||
oldAlbumTitle.Equals(newAlbumTitle) && oldAlbumArtist.Equals(newAlbumArtist)))
{
_logger.Info("No change to the song's album");
return albumRecord;