mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
cleanup
(cherry picked from commit 0ad8fc7bee8cf3549899fd31c46bd653878ef99c)
This commit is contained in:
parent
ebd99e3fa9
commit
0267c04884
1 changed files with 3 additions and 12 deletions
|
@ -70,7 +70,7 @@ namespace NzbDrone.Core.ImportLists
|
|||
|
||||
private List<Album> SyncList(ImportListDefinition definition)
|
||||
{
|
||||
_logger.ProgressInfo(string.Format("Starting Import List Refresh for List {0}", definition.Name));
|
||||
_logger.ProgressInfo("Starting Import List Refresh for List {0}", definition.Name);
|
||||
|
||||
var rssReleases = _listFetcherAndParser.FetchSingleList(definition);
|
||||
|
||||
|
@ -292,7 +292,7 @@ namespace NzbDrone.Core.ImportLists
|
|||
var existingArtist = _artistService.FindById(report.ArtistMusicBrainzId);
|
||||
|
||||
// Check to see if artist excluded
|
||||
var excludedArtist = listExclusions.Where(s => s.ForeignId == report.ArtistMusicBrainzId).SingleOrDefault();
|
||||
var excludedArtist = listExclusions.SingleOrDefault(s => s.ForeignId == report.ArtistMusicBrainzId);
|
||||
|
||||
// Check to see if artist in import
|
||||
var existingImportArtist = artistsToAdd.Find(i => i.ForeignArtistId == report.ArtistMusicBrainzId);
|
||||
|
@ -353,16 +353,7 @@ namespace NzbDrone.Core.ImportLists
|
|||
|
||||
public void Execute(ImportListSyncCommand message)
|
||||
{
|
||||
List<Album> processed;
|
||||
|
||||
if (message.DefinitionId.HasValue)
|
||||
{
|
||||
processed = SyncList(_importListFactory.Get(message.DefinitionId.Value));
|
||||
}
|
||||
else
|
||||
{
|
||||
processed = SyncAll();
|
||||
}
|
||||
var processed = message.DefinitionId.HasValue ? SyncList(_importListFactory.Get(message.DefinitionId.Value)) : SyncAll();
|
||||
|
||||
_eventAggregator.PublishEvent(new ImportListSyncCompleteEvent(processed));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue