mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Reinstate foreignArtistId for album lookup API
This commit is contained in:
parent
6a414cff14
commit
11c0f1dad2
1 changed files with 7 additions and 1 deletions
|
@ -225,7 +225,13 @@ namespace NzbDrone.Core.MetadataSource.SkyHook
|
||||||
|
|
||||||
if (existingAlbum == null)
|
if (existingAlbum == null)
|
||||||
{
|
{
|
||||||
return new List<Album> { GetAlbumInfo(searchGuid.ToString()).Item2 };
|
var data = GetAlbumInfo(searchGuid.ToString());
|
||||||
|
var album = data.Item2;
|
||||||
|
album.Artist = _artistService.FindById(data.Item1) ?? new Artist {
|
||||||
|
Metadata = data.Item3.Single(x => x.ForeignArtistId == data.Item1)
|
||||||
|
};
|
||||||
|
|
||||||
|
return new List<Album> { album };
|
||||||
}
|
}
|
||||||
|
|
||||||
existingAlbum.Artist = _artistService.GetArtist(existingAlbum.ArtistId);
|
existingAlbum.Artist = _artistService.GetArtist(existingAlbum.ArtistId);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue