mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 23:32:41 +00:00
Fixed: Use correct ID to search for Albums
This commit is contained in:
parent
8d780f4057
commit
a0a96911f8
2 changed files with 5 additions and 5 deletions
|
@ -19,8 +19,8 @@ public interface IAlbumService
|
|||
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 @@ public Album FindById(string 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)
|
||||
|
|
|
@ -161,7 +161,7 @@ public List<Album> GetAlbums(ParsedAlbumInfo parsedAlbumInfo, Artist artist, Sea
|
|||
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…
Reference in a new issue