public void Queued()
        {
            Log.Trace("Getting the settings");

            var settings = SrSettings.GetSettings();

            if (settings.Enabled)
            {
                Log.Trace("Getting all shows from SickRage");
                try
                {
                    var shows = SrApi.GetShows(settings.ApiKey, settings.FullUri);
                    if (shows != null)
                    {
                        Cache.Set(CacheKeys.SickRageQueued, shows.Result, CacheKeys.TimeFrameMinutes.SchedulerCaching);
                    }
                }
                catch (System.Exception ex)
                {
                    Log.Error(ex, "Failed caching queued items from SickRage");
                }
                finally
                {
                    Job.Record(JobNames.SrCacher);
                }
            }
        }
Exemplo n.º 2
0
        //
        // GET: /Opml/
        public ActionResult Index()
        {
            //Should return a list of all categories in opml format
            var srApi = new SrApi();
            var programCategories = srApi.GetProgramCategories();

            return View(programCategories);
        }