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:
@@ -753,8 +753,17 @@ namespace Icarus.Controllers.Managers
|
|||||||
|
|
||||||
var info = string.Empty;
|
var info = string.Empty;
|
||||||
|
|
||||||
if ((string.IsNullOrEmpty(newAlbumTitle) || string.IsNullOrEmpty(newAlbumArtist) ||
|
if (string.IsNullOrEmpty(newAlbumArtist))
|
||||||
oldAlbumTitle.Equals(newAlbumTitle) || oldAlbumArtist.Equals(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");
|
_logger.Info("No change to the song's album");
|
||||||
return albumRecord;
|
return albumRecord;
|
||||||
|
|||||||
Reference in New Issue
Block a user