mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
Fixed
This commit is contained in:
parent
54c5765c5d
commit
c1db84e17c
3 changed files with 7 additions and 9 deletions
|
@ -157,7 +157,7 @@ namespace Ombi.Core.Engine
|
|||
|
||||
|
||||
// TODO
|
||||
private async Task<SearchAlbumViewModel> MapIntoAlbumVm(AlbumResponse a, LidarrSettings settings)
|
||||
private async Task<SearchAlbumViewModel> MapIntoAlbumVm(AlbumByForeignId a, LidarrSettings settings)
|
||||
{
|
||||
var vm = new SearchAlbumViewModel
|
||||
{
|
||||
|
@ -167,7 +167,10 @@ namespace Ombi.Core.Engine
|
|||
ReleaseDate = a.releaseDate,
|
||||
Title = a.title,
|
||||
Disk = a.images?.FirstOrDefault(x => x.coverType.Equals("disc"))?.url?.Replace("http", "https"),
|
||||
Genres = a.genres
|
||||
Genres = a.genres,
|
||||
AlbumType = a.albumType,
|
||||
ArtistName = a.artist.artistName,
|
||||
ForeignArtistId = a.artist.foreignArtistId,
|
||||
};
|
||||
if (a.artistId > 0)
|
||||
{
|
||||
|
@ -185,10 +188,6 @@ namespace Ombi.Core.Engine
|
|||
}
|
||||
|
||||
vm.Cover = a.images?.FirstOrDefault(x => x.coverType.Equals("cover"))?.url?.Replace("http", "https");
|
||||
if (vm.Cover.IsNullOrEmpty())
|
||||
{
|
||||
//vm.Cover = a.remoteCover;
|
||||
}
|
||||
|
||||
await Rules.StartSpecificRules(vm, SpecificRules.LidarrAlbum);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue