|
|
@ -22,6 +22,7 @@ namespace NzbDrone.Core.Jobs
|
|
|
|
private readonly DiskScanJob _diskScanJob;
|
|
|
|
private readonly DiskScanJob _diskScanJob;
|
|
|
|
private readonly BannerDownloadJob _bannerDownloadJob;
|
|
|
|
private readonly BannerDownloadJob _bannerDownloadJob;
|
|
|
|
private readonly SeasonProvider _seasonProvider;
|
|
|
|
private readonly SeasonProvider _seasonProvider;
|
|
|
|
|
|
|
|
private readonly XemUpdateJob _xemUpdateJob;
|
|
|
|
|
|
|
|
|
|
|
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|
|
|
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
|
|
|
|
|
@ -30,7 +31,8 @@ namespace NzbDrone.Core.Jobs
|
|
|
|
[Inject]
|
|
|
|
[Inject]
|
|
|
|
public ImportNewSeriesJob(SeriesProvider seriesProvider, EpisodeProvider episodeProvider,
|
|
|
|
public ImportNewSeriesJob(SeriesProvider seriesProvider, EpisodeProvider episodeProvider,
|
|
|
|
MediaFileProvider mediaFileProvider, UpdateInfoJob updateInfoJob,
|
|
|
|
MediaFileProvider mediaFileProvider, UpdateInfoJob updateInfoJob,
|
|
|
|
DiskScanJob diskScanJob, BannerDownloadJob bannerDownloadJob,SeasonProvider seasonProvider)
|
|
|
|
DiskScanJob diskScanJob, BannerDownloadJob bannerDownloadJob,
|
|
|
|
|
|
|
|
SeasonProvider seasonProvider, XemUpdateJob xemUpdateJob)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
_seriesProvider = seriesProvider;
|
|
|
|
_seriesProvider = seriesProvider;
|
|
|
|
_episodeProvider = episodeProvider;
|
|
|
|
_episodeProvider = episodeProvider;
|
|
|
@ -39,6 +41,7 @@ namespace NzbDrone.Core.Jobs
|
|
|
|
_diskScanJob = diskScanJob;
|
|
|
|
_diskScanJob = diskScanJob;
|
|
|
|
_bannerDownloadJob = bannerDownloadJob;
|
|
|
|
_bannerDownloadJob = bannerDownloadJob;
|
|
|
|
_seasonProvider = seasonProvider;
|
|
|
|
_seasonProvider = seasonProvider;
|
|
|
|
|
|
|
|
_xemUpdateJob = xemUpdateJob;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public string Name
|
|
|
|
public string Name
|
|
|
@ -81,6 +84,9 @@ namespace NzbDrone.Core.Jobs
|
|
|
|
//Download the banner for the new series
|
|
|
|
//Download the banner for the new series
|
|
|
|
_bannerDownloadJob.Start(notification, updatedSeries.SeriesId, 0);
|
|
|
|
_bannerDownloadJob.Start(notification, updatedSeries.SeriesId, 0);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Get Scene Numbering if applicable
|
|
|
|
|
|
|
|
_xemUpdateJob.Start(notification, updatedSeries.SeriesId, 0);
|
|
|
|
|
|
|
|
|
|
|
|
notification.CurrentMessage = String.Format("{0} was successfully imported", updatedSeries.Title);
|
|
|
|
notification.CurrentMessage = String.Format("{0} was successfully imported", updatedSeries.Title);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|