Method, Variable, Class Renames in Readarr.Core

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2020-05-12 22:48:46 -04:00
parent 56aedcc467
commit 8547af9fae
572 changed files with 6584 additions and 6597 deletions
@@ -4,18 +4,18 @@ using System.Linq;
using NLog;
using NzbDrone.Common.Extensions;
namespace NzbDrone.Core.Music
namespace NzbDrone.Core.Books
{
public abstract class RefreshEntityServiceBase<TEntity, TChild>
{
private readonly Logger _logger;
private readonly IArtistMetadataService _artistMetadataService;
private readonly IAuthorMetadataService _authorMetadataService;
protected RefreshEntityServiceBase(Logger logger,
IArtistMetadataService artistMetadataService)
IAuthorMetadataService authorMetadataService)
{
_logger = logger;
_artistMetadataService = artistMetadataService;
_authorMetadataService = authorMetadataService;
}
public enum UpdateResult
@@ -209,7 +209,7 @@ namespace NzbDrone.Core.Music
public UpdateResult UpdateArtistMetadata(List<AuthorMetadata> data)
{
var remoteMetadata = data.DistinctBy(x => x.ForeignAuthorId).ToList();
var updated = _artistMetadataService.UpsertMany(remoteMetadata);
var updated = _authorMetadataService.UpsertMany(remoteMetadata);
return updated ? UpdateResult.UpdateTags : UpdateResult.None;
}