diff options
Diffstat (limited to 'MediaBrowser.Providers/TV/RemoteSeriesProvider.cs')
| -rw-r--r-- | MediaBrowser.Providers/TV/RemoteSeriesProvider.cs | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/MediaBrowser.Providers/TV/RemoteSeriesProvider.cs b/MediaBrowser.Providers/TV/RemoteSeriesProvider.cs index 1613489351..d639c67439 100644 --- a/MediaBrowser.Providers/TV/RemoteSeriesProvider.cs +++ b/MediaBrowser.Providers/TV/RemoteSeriesProvider.cs @@ -218,8 +218,6 @@ namespace MediaBrowser.Providers.TV if (!string.IsNullOrEmpty(seriesId)) { - series.SetProviderId(MetadataProviders.Tvdb, seriesId); - var seriesDataPath = GetSeriesDataPath(ConfigurationManager.ApplicationPaths, seriesId); await FetchSeriesData(series, seriesId, seriesDataPath, force, cancellationToken).ConfigureAwait(false); @@ -255,19 +253,25 @@ namespace MediaBrowser.Providers.TV await DownloadSeriesZip(seriesId, seriesDataPath, null, cancellationToken).ConfigureAwait(false); } - // Examine if there's no local metadata, or save local is on (to get updates) - if (isForcedRefresh || ConfigurationManager.Configuration.EnableTvDbUpdates || !HasLocalMeta(series)) + // Have to check this here since we prevent the normal enforcement through ProviderManager + if (!series.DontFetchMeta) { - var seriesXmlPath = Path.Combine(seriesDataPath, seriesXmlFilename); - var actorsXmlPath = Path.Combine(seriesDataPath, "actors.xml"); + // Examine if there's no local metadata, or save local is on (to get updates) + if (isForcedRefresh || ConfigurationManager.Configuration.EnableTvDbUpdates || !HasLocalMeta(series)) + { + series.SetProviderId(MetadataProviders.Tvdb, seriesId); - FetchSeriesInfo(series, seriesXmlPath, cancellationToken); + var seriesXmlPath = Path.Combine(seriesDataPath, seriesXmlFilename); + var actorsXmlPath = Path.Combine(seriesDataPath, "actors.xml"); - if (!series.LockedFields.Contains(MetadataFields.Cast)) - { - series.People.Clear(); + FetchSeriesInfo(series, seriesXmlPath, cancellationToken); - FetchActors(series, actorsXmlPath, cancellationToken); + if (!series.LockedFields.Contains(MetadataFields.Cast)) + { + series.People.Clear(); + + FetchActors(series, actorsXmlPath, cancellationToken); + } } } } |
