using System; using System.Collections.Generic; namespace MediaBrowser.Controller.Library { /// /// Class TVUtils /// public static class TVUtils { /// /// The TVDB API key /// public static readonly string TvdbApiKey = "B89CE93890E9419B"; /// /// The banner URL /// public static readonly string BannerUrl = "http://www.thetvdb.com/banners/"; /// /// Gets the air days. /// /// The day. /// List{DayOfWeek}. public static List GetAirDays(string day) { if (!string.IsNullOrWhiteSpace(day)) { if (day.Equals("Daily", StringComparison.OrdinalIgnoreCase)) { return new List { DayOfWeek.Sunday, DayOfWeek.Monday, DayOfWeek.Tuesday, DayOfWeek.Wednesday, DayOfWeek.Thursday, DayOfWeek.Friday, DayOfWeek.Saturday }; } DayOfWeek value; if (Enum.TryParse(day, true, out value)) { return new List { value }; } return new List(); } return null; } } }