Diskscan/Info update job refactoring and test

This commit is contained in:
kay.one 2011-05-20 17:23:49 -07:00
commit e4ff0d6471
16 changed files with 400 additions and 114 deletions

View file

@ -36,7 +36,7 @@ namespace NzbDrone.Web.Controllers
[HttpPost]
public JsonResult ScanNewSeries()
{
_jobProvider.QueueJob(typeof(NewSeriesUpdate));
_jobProvider.QueueJob(typeof(ImportNewSeriesJob));
return new JsonResult();
}

View file

@ -265,7 +265,7 @@ namespace NzbDrone.Web.Controllers
public ActionResult SyncEpisodesOnDisk(int seriesId)
{
//Syncs the episodes on disk for the specified series
_jobProvider.QueueJob(typeof(MediaFileScanJob), seriesId);
_jobProvider.QueueJob(typeof(DiskScanJob), seriesId);
return RedirectToAction("Details", new { seriesId });
}