فهرست منبع

Make sure item has a place to store local meta before trying to store there

Eric Reed 12 سال پیش
والد
کامیت
6ebab4a965
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      MediaBrowser.Server.Implementations/Providers/ProviderManager.cs

+ 1 - 1
MediaBrowser.Server.Implementations/Providers/ProviderManager.cs

@@ -368,7 +368,7 @@ namespace MediaBrowser.Server.Implementations.Providers
             }
             }
 
 
             //download and save locally
             //download and save locally
-            var localPath = ConfigurationManager.Configuration.SaveLocalMeta ?
+            var localPath = (ConfigurationManager.Configuration.SaveLocalMeta && item.MetaLocation != null) ?
                 Path.Combine(item.MetaLocation, targetName) :
                 Path.Combine(item.MetaLocation, targetName) :
                 _remoteImageCache.GetResourcePath(item.GetType().FullName + item.Path.ToLower(), targetName);
                 _remoteImageCache.GetResourcePath(item.GetType().FullName + item.Path.ToLower(), targetName);