Fixed: Use correct ID to search for Albums

pull/6/head
ta264 5 years ago
parent 8d780f4057
commit a0a96911f8

@ -19,8 +19,8 @@ namespace NzbDrone.Core.Music
List<Album> GetAlbumsForRefresh(int artistMetadataId, IEnumerable<string> foreignIds);
Album AddAlbum(Album newAlbum);
Album FindById(string foreignId);
Album FindByTitle(int artistId, string title);
Album FindByTitleInexact(int artistId, string title);
Album FindByTitle(int artistMetadataId, string title);
Album FindByTitleInexact(int artistMetadataId, string title);
List<Album> GetCandidates(int artistId, string title);
void DeleteAlbum(int albumId, bool deleteFiles);
List<Album> GetAllAlbums();
@ -76,9 +76,9 @@ namespace NzbDrone.Core.Music
return _albumRepository.FindById(lidarrId);
}
public Album FindByTitle(int artistId, string title)
public Album FindByTitle(int artistMetadataId, string title)
{
return _albumRepository.FindByTitle(artistId, title);
return _albumRepository.FindByTitle(artistMetadataId, title);
}
private List<Tuple<Func<Album, string, double>, string>> AlbumScoringFunctions(string title, string cleanTitle)

@ -161,7 +161,7 @@ namespace NzbDrone.Core.Parser
if (albumInfo == null)
{
_logger.Debug("Trying inexact album match for {0}", parsedAlbumInfo.AlbumTitle);
albumInfo = _albumService.FindByTitleInexact(artist.Id, parsedAlbumInfo.AlbumTitle);
albumInfo = _albumService.FindByTitleInexact(artist.ArtistMetadataId, parsedAlbumInfo.AlbumTitle);
}
if (albumInfo != null)

Loading…
Cancel
Save