mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-26 15:52:42 +00:00
Added: Additional Logging and Messaging for Albums
This commit is contained in:
parent
3e0d0f17f2
commit
4dd857ea30
2 changed files with 6 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
using FluentValidation.Results;
|
||||
using NLog;
|
||||
using NzbDrone.Common.EnsureThat;
|
||||
using NzbDrone.Common.Instrumentation.Extensions;
|
||||
using NzbDrone.Core.Exceptions;
|
||||
using NzbDrone.Core.MetadataSource;
|
||||
|
||||
|
@ -41,7 +42,7 @@ public Album AddAlbum(Album newAlbum)
|
|||
var tuple = AddSkyhookData(newAlbum);
|
||||
newAlbum = tuple.Item1;
|
||||
_refreshTrackService.RefreshTrackInfo(newAlbum, tuple.Item2);
|
||||
_logger.Info("Adding Album {0}", newAlbum);
|
||||
_logger.ProgressInfo("Adding Album {0}", newAlbum.Title);
|
||||
_albumService.AddAlbum(newAlbum);
|
||||
|
||||
return newAlbum;
|
||||
|
@ -60,6 +61,7 @@ public List<Album> AddAlbums(List<Album> newAlbums)
|
|||
album.LastInfoSync = added;
|
||||
album = _albumService.AddAlbum(album);
|
||||
_refreshTrackService.RefreshTrackInfo(album,tuple.Item2);
|
||||
_logger.ProgressInfo("Adding Album {0}", newAlbum.Title);
|
||||
albumsToAdd.Add(album);
|
||||
}
|
||||
|
||||
|
|
|
@ -108,6 +108,8 @@ public void RefreshAlbumInfo(Album album)
|
|||
|
||||
_albumService.UpdateMany(new List<Album>{album});
|
||||
|
||||
_logger.Debug("Finished album refresh for {0}", album.Title);
|
||||
|
||||
}
|
||||
|
||||
public void Execute(RefreshAlbumCommand message)
|
||||
|
|
Loading…
Reference in a new issue