|
@@ -7,7 +7,6 @@ using System.Threading.Tasks;
|
|
using MediaBrowser.Common.Net;
|
|
using MediaBrowser.Common.Net;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Controller.Entities;
|
|
using MediaBrowser.Controller.Entities.TV;
|
|
using MediaBrowser.Controller.Entities.TV;
|
|
-using MediaBrowser.Controller.Library;
|
|
|
|
using MediaBrowser.Controller.Providers;
|
|
using MediaBrowser.Controller.Providers;
|
|
using MediaBrowser.Model.Entities;
|
|
using MediaBrowser.Model.Entities;
|
|
using MediaBrowser.Model.Providers;
|
|
using MediaBrowser.Model.Providers;
|
|
@@ -100,10 +99,10 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
|
RatingType = RatingType.Score,
|
|
RatingType = RatingType.Score,
|
|
CommunityRating = (double?)image.RatingsInfo.Average,
|
|
CommunityRating = (double?)image.RatingsInfo.Average,
|
|
VoteCount = image.RatingsInfo.Count,
|
|
VoteCount = image.RatingsInfo.Count,
|
|
- Url = TVUtils.BannerUrl + image.FileName,
|
|
|
|
|
|
+ Url = TvdbUtils.BannerUrl + image.FileName,
|
|
ProviderName = ProviderName,
|
|
ProviderName = ProviderName,
|
|
Language = languages.FirstOrDefault(lang => lang.Id == image.LanguageId)?.Abbreviation,
|
|
Language = languages.FirstOrDefault(lang => lang.Id == image.LanguageId)?.Abbreviation,
|
|
- ThumbnailUrl = TVUtils.BannerUrl + image.Thumbnail
|
|
|
|
|
|
+ ThumbnailUrl = TvdbUtils.BannerUrl + image.Thumbnail
|
|
};
|
|
};
|
|
|
|
|
|
var resolution = image.Resolution.Split('x');
|
|
var resolution = image.Resolution.Split('x');
|
|
@@ -113,19 +112,7 @@ namespace MediaBrowser.Providers.TV.TheTVDB
|
|
imageInfo.Height = Convert.ToInt32(resolution[1]);
|
|
imageInfo.Height = Convert.ToInt32(resolution[1]);
|
|
}
|
|
}
|
|
|
|
|
|
- if (string.Equals(image.KeyType, "season", StringComparison.OrdinalIgnoreCase))
|
|
|
|
- {
|
|
|
|
- imageInfo.Type = ImageType.Primary;
|
|
|
|
- }
|
|
|
|
- else if (string.Equals(image.KeyType, "seasonwide", StringComparison.OrdinalIgnoreCase))
|
|
|
|
- {
|
|
|
|
- imageInfo.Type = ImageType.Banner;
|
|
|
|
- }
|
|
|
|
- else if (string.Equals(image.KeyType, "fanart", StringComparison.OrdinalIgnoreCase))
|
|
|
|
- {
|
|
|
|
- imageInfo.Type = ImageType.Backdrop;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ imageInfo.Type = TvdbUtils.GetImageTypeFromKeyType(image.KeyType);
|
|
list.Add(imageInfo);
|
|
list.Add(imageInfo);
|
|
}
|
|
}
|
|
var isLanguageEn = string.Equals(preferredLanguage, "en", StringComparison.OrdinalIgnoreCase);
|
|
var isLanguageEn = string.Equals(preferredLanguage, "en", StringComparison.OrdinalIgnoreCase);
|