Fixed: _coverMapper is null for other album entities

pull/760/head
Qstick 6 years ago
parent adfaec3864
commit b2d87cccb2

@ -35,6 +35,7 @@ namespace Lidarr.Api.V1.Albums
protected AlbumModuleWithSignalR(IAlbumService albumService,
IArtistStatisticsService artistStatisticsService,
IMapCoversToLocal coverMapper,
IUpgradableSpecification qualityUpgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster,
string resource)
@ -42,6 +43,7 @@ namespace Lidarr.Api.V1.Albums
{
_albumService = albumService;
_artistStatisticsService = artistStatisticsService;
_coverMapper = coverMapper;
_qualityUpgradableSpecification = qualityUpgradableSpecification;
GetResourceById = GetAlbum;

@ -7,6 +7,7 @@ using NzbDrone.Core.ArtistStats;
using NzbDrone.SignalR;
using Lidarr.Api.V1.Albums;
using Lidarr.Http.Extensions;
using NzbDrone.Core.MediaCover;
namespace Lidarr.Api.V1.Calendar
{
@ -14,9 +15,10 @@ namespace Lidarr.Api.V1.Calendar
{
public CalendarModule(IAlbumService albumService,
IArtistStatisticsService artistStatisticsService,
IMapCoversToLocal coverMapper,
IUpgradableSpecification upgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster)
: base(albumService, artistStatisticsService, upgradableSpecification, signalRBroadcaster, "calendar")
: base(albumService, artistStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "calendar")
{
GetResourceAll = GetCalendar;
}

@ -7,6 +7,7 @@ using NzbDrone.SignalR;
using Lidarr.Api.V1.Albums;
using Lidarr.Http;
using Lidarr.Http.Extensions;
using NzbDrone.Core.MediaCover;
namespace Lidarr.Api.V1.Wanted
{
@ -17,9 +18,10 @@ namespace Lidarr.Api.V1.Wanted
public CutoffModule(IAlbumCutoffService albumCutoffService,
IAlbumService albumService,
IArtistStatisticsService artistStatisticsService,
IMapCoversToLocal coverMapper,
IUpgradableSpecification upgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster)
: base(albumService, artistStatisticsService, upgradableSpecification, signalRBroadcaster, "wanted/cutoff")
: base(albumService, artistStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/cutoff")
{
_albumCutoffService = albumCutoffService;
GetResourcePaged = GetCutoffUnmetAlbums;

@ -7,6 +7,7 @@ using NzbDrone.SignalR;
using Lidarr.Api.V1.Albums;
using Lidarr.Http;
using Lidarr.Http.Extensions;
using NzbDrone.Core.MediaCover;
namespace Lidarr.Api.V1.Wanted
{
@ -14,9 +15,10 @@ namespace Lidarr.Api.V1.Wanted
{
public MissingModule(IAlbumService albumService,
IArtistStatisticsService artistStatisticsService,
IMapCoversToLocal coverMapper,
IUpgradableSpecification upgradableSpecification,
IBroadcastSignalRMessage signalRBroadcaster)
: base(albumService, artistStatisticsService, upgradableSpecification, signalRBroadcaster, "wanted/missing")
: base(albumService, artistStatisticsService, coverMapper, upgradableSpecification, signalRBroadcaster, "wanted/missing")
{
GetResourcePaged = GetMissingAlbums;
}

Loading…
Cancel
Save