public JsonResult ForceRefreshAll() { _jobProvider.QueueJob(typeof(UpdateInfoJob)); _jobProvider.QueueJob(typeof(DiskScanJob)); _jobProvider.QueueJob(typeof(RefreshEpisodeMetadata)); return(JsonNotificationResult.Queued("Episode update/Disk scan")); }
public JsonResult ForceRefresh(int seriesId) { _jobProvider.QueueJob(typeof(UpdateInfoJob), new { SeriesId = seriesId }); _jobProvider.QueueJob(typeof(DiskScanJob), new { SeriesId = seriesId }); _jobProvider.QueueJob(typeof(RefreshEpisodeMetadata), new { SeriesId = seriesId }); return(JsonNotificationResult.Queued("Episode update/Disk scan")); }
public JsonResult Redownload(int historyId, int episodeId) { //Delete the existing item from history _historyProvider.Delete(historyId); //Queue a job to download the replacement episode _jobProvider.QueueJob(typeof(EpisodeSearchJob), new { EpisodeId = episodeId }); return(JsonNotificationResult.Queued("Episode search")); }
public JsonResult RenameAllSeries() { _jobProvider.QueueJob(typeof(RenameSeriesJob)); return(JsonNotificationResult.Queued("Series rename")); }
public JsonResult RenameSeries(int seriesId) { _jobProvider.QueueJob(typeof(RenameSeriesJob), new { SeriesId = seriesId }); return(JsonNotificationResult.Queued("Series rename")); }
public JsonResult RenameSeason(int seriesId, int seasonNumber) { _jobProvider.QueueJob(typeof(RenameSeasonJob), new { SeriesId = seriesId, SeasonNumber = seasonNumber }); return(JsonNotificationResult.Queued("Season rename")); }
public JsonResult BacklogSeries(int seriesId) { _jobProvider.QueueJob(typeof(SeriesSearchJob), new { SeriesId = seriesId }); return(JsonNotificationResult.Queued("Series Backlog")); }
public JsonResult SearchSeason(int seriesId, int seasonNumber) { _jobProvider.QueueJob(typeof(SeasonSearchJob), new { SeriesId = seriesId, SeasonNumber = seasonNumber }); return(JsonNotificationResult.Queued("Season search")); }
public JsonResult Search(int episodeId) { _jobProvider.QueueJob(typeof(EpisodeSearchJob), new { EpisodeId = episodeId }); return(JsonNotificationResult.Queued("Episode search")); }
public JsonResult PastWeekBacklogSearch() { _jobProvider.QueueJob(typeof(PastWeekBacklogSearchJob)); return(JsonNotificationResult.Queued("Past Week backlog search")); }
public JsonResult RecentBacklogSearch() { _jobProvider.QueueJob(typeof(RecentBacklogSearchJob)); return(JsonNotificationResult.Queued("Recent backlog search")); }
public JsonResult RssSync() { _jobProvider.QueueJob(typeof(RssSyncJob)); return(JsonNotificationResult.Queued("RSS sync")); }