diff options
| author | Eric Reed <ebr@mediabrowser3.com> | 2013-05-14 12:16:43 -0400 |
|---|---|---|
| committer | Eric Reed <ebr@mediabrowser3.com> | 2013-05-14 12:16:43 -0400 |
| commit | 9482354f5570deaafc51e5d331a8a9d1bad2b25c (patch) | |
| tree | cb949e0d955b83ed9d8375c4091dfe4b3d629c44 | |
| parent | 349532151407ef24cc3954ecf1ca19bb0bc698a9 (diff) | |
Make season provider obey language
| -rw-r--r-- | MediaBrowser.Controller/Providers/TV/RemoteSeasonProvider.cs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/MediaBrowser.Controller/Providers/TV/RemoteSeasonProvider.cs b/MediaBrowser.Controller/Providers/TV/RemoteSeasonProvider.cs index e2013fb87..79ea75f8e 100644 --- a/MediaBrowser.Controller/Providers/TV/RemoteSeasonProvider.cs +++ b/MediaBrowser.Controller/Providers/TV/RemoteSeasonProvider.cs @@ -71,6 +71,14 @@ namespace MediaBrowser.Controller.Providers.TV } } + protected override bool RefreshOnFileSystemStampChange + { + get + { + return ConfigurationManager.Configuration.SaveLocalMeta; + } + } + /// <summary> /// Needses the refresh internal. /// </summary> @@ -168,7 +176,8 @@ namespace MediaBrowser.Controller.Providers.TV { if (ConfigurationManager.Configuration.RefreshItemImages || !season.HasLocalImage("folder")) { - var n = images.SelectSingleNode("//Banner[BannerType='season'][BannerType2='season'][Season='" + seasonNumber + "']"); + var n = images.SelectSingleNode("//Banner[BannerType='season'][BannerType2='season'][Season='" + seasonNumber + "'][Language='" + ConfigurationManager.Configuration.PreferredMetadataLanguage + "']") ?? + images.SelectSingleNode("//Banner[BannerType='season'][BannerType2='season'][Season='" + seasonNumber + "'][Language='en']"); if (n != null) { n = n.SelectSingleNode("./BannerPath"); @@ -187,7 +196,8 @@ namespace MediaBrowser.Controller.Providers.TV if (ConfigurationManager.Configuration.DownloadSeasonImages.Banner && (ConfigurationManager.Configuration.RefreshItemImages || !season.HasLocalImage("banner"))) { - var n = images.SelectSingleNode("//Banner[BannerType='season'][BannerType2='seasonwide'][Season='" + seasonNumber + "']"); + var n = images.SelectSingleNode("//Banner[BannerType='season'][BannerType2='seasonwide'][Season='" + seasonNumber + "'][Language='" + ConfigurationManager.Configuration.PreferredMetadataLanguage + "']") ?? + images.SelectSingleNode("//Banner[BannerType='season'][BannerType2='seasonwide'][Season='" + seasonNumber + "'][Language='en']"); if (n != null) { n = n.SelectSingleNode("./BannerPath"); |
