mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-21 17:44:43 +01:00
add separate entry point for new item notifier
This commit is contained in:
@@ -179,7 +179,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
seasonNumber = "0"; // Specials
|
||||
}
|
||||
|
||||
var url = string.Format(episodeQuery, TVUtils.TVDBApiKey, seriesId, seasonNumber, episodeNumber, ConfigurationManager.Configuration.PreferredMetadataLanguage);
|
||||
var url = string.Format(episodeQuery, TVUtils.TvdbApiKey, seriesId, seasonNumber, episodeNumber, ConfigurationManager.Configuration.PreferredMetadataLanguage);
|
||||
var doc = new XmlDocument();
|
||||
|
||||
try
|
||||
@@ -205,7 +205,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
//this is basicly just for anime.
|
||||
if (!doc.HasChildNodes && Int32.Parse(seasonNumber) == 1)
|
||||
{
|
||||
url = string.Format(absEpisodeQuery, TVUtils.TVDBApiKey, seriesId, episodeNumber, ConfigurationManager.Configuration.PreferredMetadataLanguage);
|
||||
url = string.Format(absEpisodeQuery, TVUtils.TvdbApiKey, seriesId, episodeNumber, ConfigurationManager.Configuration.PreferredMetadataLanguage);
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
if ((season.PrimaryImagePath == null) || (!season.HasImage(ImageType.Banner)) || (season.BackdropImagePaths == null))
|
||||
{
|
||||
var images = new XmlDocument();
|
||||
var url = string.Format("http://www.thetvdb.com/api/" + TVUtils.TVDBApiKey + "/series/{0}/banners.xml", seriesId);
|
||||
var url = string.Format("http://www.thetvdb.com/api/" + TVUtils.TvdbApiKey + "/series/{0}/banners.xml", seriesId);
|
||||
|
||||
using (var imgs = await HttpClient.Get(new HttpRequestOptions
|
||||
{
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
if (!string.IsNullOrEmpty(seriesId))
|
||||
{
|
||||
|
||||
string url = string.Format(seriesGet, TVUtils.TVDBApiKey, seriesId, ConfigurationManager.Configuration.PreferredMetadataLanguage);
|
||||
string url = string.Format(seriesGet, TVUtils.TvdbApiKey, seriesId, ConfigurationManager.Configuration.PreferredMetadataLanguage);
|
||||
var doc = new XmlDocument();
|
||||
|
||||
try
|
||||
@@ -296,7 +296,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
/// <returns>Task.</returns>
|
||||
private async Task FetchActors(Series series, string seriesId, XmlDocument doc, CancellationToken cancellationToken)
|
||||
{
|
||||
string urlActors = string.Format(getActors, TVUtils.TVDBApiKey, seriesId);
|
||||
string urlActors = string.Format(getActors, TVUtils.TvdbApiKey, seriesId);
|
||||
var docActors = new XmlDocument();
|
||||
|
||||
try
|
||||
@@ -377,7 +377,7 @@ namespace MediaBrowser.Controller.Providers.TV
|
||||
{
|
||||
if ((!string.IsNullOrEmpty(seriesId)) && ((series.PrimaryImagePath == null) || (series.BackdropImagePaths == null)))
|
||||
{
|
||||
string url = string.Format("http://www.thetvdb.com/api/" + TVUtils.TVDBApiKey + "/series/{0}/banners.xml", seriesId);
|
||||
string url = string.Format("http://www.thetvdb.com/api/" + TVUtils.TvdbApiKey + "/series/{0}/banners.xml", seriesId);
|
||||
var images = new XmlDocument();
|
||||
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user