mirror of https://github.com/lidarr/Lidarr
Fixed: Use correct ID to search for Albums
This commit is contained in:
parent
8d780f4057
commit
a0a96911f8
|
@ -19,8 +19,8 @@ namespace NzbDrone.Core.Music
|
||||||
List<Album> GetAlbumsForRefresh(int artistMetadataId, IEnumerable<string> foreignIds);
|
List<Album> GetAlbumsForRefresh(int artistMetadataId, IEnumerable<string> foreignIds);
|
||||||
Album AddAlbum(Album newAlbum);
|
Album AddAlbum(Album newAlbum);
|
||||||
Album FindById(string foreignId);
|
Album FindById(string foreignId);
|
||||||
Album FindByTitle(int artistId, string title);
|
Album FindByTitle(int artistMetadataId, string title);
|
||||||
Album FindByTitleInexact(int artistId, string title);
|
Album FindByTitleInexact(int artistMetadataId, string title);
|
||||||
List<Album> GetCandidates(int artistId, string title);
|
List<Album> GetCandidates(int artistId, string title);
|
||||||
void DeleteAlbum(int albumId, bool deleteFiles);
|
void DeleteAlbum(int albumId, bool deleteFiles);
|
||||||
List<Album> GetAllAlbums();
|
List<Album> GetAllAlbums();
|
||||||
|
@ -76,9 +76,9 @@ namespace NzbDrone.Core.Music
|
||||||
return _albumRepository.FindById(lidarrId);
|
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)
|
private List<Tuple<Func<Album, string, double>, string>> AlbumScoringFunctions(string title, string cleanTitle)
|
||||||
|
|
|
@ -161,7 +161,7 @@ namespace NzbDrone.Core.Parser
|
||||||
if (albumInfo == null)
|
if (albumInfo == null)
|
||||||
{
|
{
|
||||||
_logger.Debug("Trying inexact album match for {0}", parsedAlbumInfo.AlbumTitle);
|
_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)
|
if (albumInfo != null)
|
||||||
|
|
Loading…
Reference in New Issue