mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 22:08:27 +01:00
Merge pull request #776 from cvium/update_tvdb
Update tvdb provider to v2 api
This commit is contained in:
@@ -7,16 +7,6 @@ namespace MediaBrowser.Controller.Library
|
||||
/// </summary>
|
||||
public static class TVUtils
|
||||
{
|
||||
/// <summary>
|
||||
/// The TVDB API key
|
||||
/// </summary>
|
||||
public static readonly string TvdbApiKey = "72930AE1CB7E2DB3";
|
||||
public static readonly string TvdbBaseUrl = "https://www.thetvdb.com/";
|
||||
/// <summary>
|
||||
/// The banner URL
|
||||
/// </summary>
|
||||
public static readonly string BannerUrl = TvdbBaseUrl + "banners/";
|
||||
|
||||
/// <summary>
|
||||
/// Gets the air days.
|
||||
/// </summary>
|
||||
@@ -28,24 +18,24 @@ namespace MediaBrowser.Controller.Library
|
||||
{
|
||||
if (string.Equals(day, "Daily", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return new DayOfWeek[]
|
||||
{
|
||||
DayOfWeek.Sunday,
|
||||
DayOfWeek.Monday,
|
||||
DayOfWeek.Tuesday,
|
||||
DayOfWeek.Wednesday,
|
||||
DayOfWeek.Thursday,
|
||||
DayOfWeek.Friday,
|
||||
DayOfWeek.Saturday
|
||||
};
|
||||
return new[]
|
||||
{
|
||||
DayOfWeek.Sunday,
|
||||
DayOfWeek.Monday,
|
||||
DayOfWeek.Tuesday,
|
||||
DayOfWeek.Wednesday,
|
||||
DayOfWeek.Thursday,
|
||||
DayOfWeek.Friday,
|
||||
DayOfWeek.Saturday
|
||||
};
|
||||
}
|
||||
|
||||
if (Enum.TryParse(day, true, out DayOfWeek value))
|
||||
{
|
||||
return new DayOfWeek[]
|
||||
{
|
||||
value
|
||||
};
|
||||
return new[]
|
||||
{
|
||||
value
|
||||
};
|
||||
}
|
||||
|
||||
return new DayOfWeek[] { };
|
||||
|
||||
Reference in New Issue
Block a user