Ejemplo n.º 1
0
        public JsonResult ForceRefreshAll()
        {
            _jobProvider.QueueJob(typeof(UpdateInfoJob));
            _jobProvider.QueueJob(typeof(DiskScanJob));
            _jobProvider.QueueJob(typeof(RefreshEpisodeMetadata));

            return(JsonNotificationResult.Queued("Episode update/Disk scan"));
        }
Ejemplo n.º 2
0
        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"));
        }
Ejemplo n.º 3
0
        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"));
        }
Ejemplo n.º 4
0
 public JsonResult RenameAllSeries()
 {
     _jobProvider.QueueJob(typeof(RenameSeriesJob));
     return(JsonNotificationResult.Queued("Series rename"));
 }
Ejemplo n.º 5
0
 public JsonResult RenameSeries(int seriesId)
 {
     _jobProvider.QueueJob(typeof(RenameSeriesJob), new { SeriesId = seriesId });
     return(JsonNotificationResult.Queued("Series rename"));
 }
Ejemplo n.º 6
0
 public JsonResult RenameSeason(int seriesId, int seasonNumber)
 {
     _jobProvider.QueueJob(typeof(RenameSeasonJob), new { SeriesId = seriesId, SeasonNumber = seasonNumber });
     return(JsonNotificationResult.Queued("Season rename"));
 }
Ejemplo n.º 7
0
 public JsonResult BacklogSeries(int seriesId)
 {
     _jobProvider.QueueJob(typeof(SeriesSearchJob), new { SeriesId = seriesId });
     return(JsonNotificationResult.Queued("Series Backlog"));
 }
Ejemplo n.º 8
0
 public JsonResult SearchSeason(int seriesId, int seasonNumber)
 {
     _jobProvider.QueueJob(typeof(SeasonSearchJob), new { SeriesId = seriesId, SeasonNumber = seasonNumber });
     return(JsonNotificationResult.Queued("Season search"));
 }
Ejemplo n.º 9
0
 public JsonResult Search(int episodeId)
 {
     _jobProvider.QueueJob(typeof(EpisodeSearchJob), new { EpisodeId = episodeId });
     return(JsonNotificationResult.Queued("Episode search"));
 }
Ejemplo n.º 10
0
 public JsonResult PastWeekBacklogSearch()
 {
     _jobProvider.QueueJob(typeof(PastWeekBacklogSearchJob));
     return(JsonNotificationResult.Queued("Past Week backlog search"));
 }
Ejemplo n.º 11
0
 public JsonResult RecentBacklogSearch()
 {
     _jobProvider.QueueJob(typeof(RecentBacklogSearchJob));
     return(JsonNotificationResult.Queued("Recent backlog search"));
 }
Ejemplo n.º 12
0
 public JsonResult RssSync()
 {
     _jobProvider.QueueJob(typeof(RssSyncJob));
     return(JsonNotificationResult.Queued("RSS sync"));
 }