diff options
| author | Mike <github@barry.io> | 2015-03-23 21:37:21 -0400 |
|---|---|---|
| committer | Mike <github@barry.io> | 2015-03-23 21:37:21 -0400 |
| commit | 6fbbf913e4b4f70a6e190a1af926905d5fff1d5c (patch) | |
| tree | 09bccaf218225da17631813ff80fba6b29914ec6 | |
| parent | 1fba8d077bf5d6f59483484b8382b200da26fb27 (diff) | |
Fix season images not showing up when Emby starts.
The TvdbSeasonImageProvider was running before the TvdbSeasonImageProvider. This caused the seriesid be null on the series. (This is apparently populated as part of the metadata refresh on the series. Moving that scan before the seasons seems to fix the problem.
See the following code from TvdbSeriesImageProvider
var seriesId = series != null ? series.GetProviderId(MetadataProviders.Tvdb) : null;
if (!string.IsNullOrEmpty(seriesId) && season.IndexNumber.HasValue)
| -rw-r--r-- | MediaBrowser.Controller/Entities/TV/Series.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MediaBrowser.Controller/Entities/TV/Series.cs b/MediaBrowser.Controller/Entities/TV/Series.cs index b4e1d9d6e5..91014ccdad 100644 --- a/MediaBrowser.Controller/Entities/TV/Series.cs +++ b/MediaBrowser.Controller/Entities/TV/Series.cs @@ -232,7 +232,10 @@ namespace MediaBrowser.Controller.Entities.TV refreshOptions = new MetadataRefreshOptions(refreshOptions); refreshOptions.IsPostRecursiveRefresh = true; - // Refresh songs + // Refresh current item + await RefreshMetadata(refreshOptions, cancellationToken).ConfigureAwait(false); + + // Refresh TV foreach (var item in seasons) { cancellationToken.ThrowIfCancellationRequested(); @@ -245,9 +248,6 @@ namespace MediaBrowser.Controller.Entities.TV progress.Report(percent * 100); } - // Refresh current item - await RefreshMetadata(refreshOptions, cancellationToken).ConfigureAwait(false); - // Refresh all non-songs foreach (var item in otherItems) { |
