瀏覽代碼

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)
Mike 10 年之前
父節點
當前提交
6fbbf913e4
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      MediaBrowser.Controller/Entities/TV/Series.cs

+ 4 - 4
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)
             {