Skip to content

The Free Software Media System - Server Backend & API

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

Eric Reed6ebab4a965e2
diff --git a/MediaBrowser.Server.Implementations/Providers/ProviderManager.cs b/MediaBrowser.Server.Implementations/Providers/ProviderManager.cs
index 5accc06d77..a8239deb41 100644
--- a/MediaBrowser.Server.Implementations/Providers/ProviderManager.cs
+++ b/MediaBrowser.Server.Implementations/Providers/ProviderManager.cs
@@ -368,7 +368,7 @@ namespace MediaBrowser.Server.Implementations.Providers
}
//download and save locally
- var localPath = ConfigurationManager.Configuration.SaveLocalMeta ?
+ var localPath = (ConfigurationManager.Configuration.SaveLocalMeta && item.MetaLocation != null) ?
Path.Combine(item.MetaLocation, targetName) :
_remoteImageCache.GetResourcePath(item.GetType().FullName + item.Path.ToLower(), targetName);