From 6ebab4a965e2b79599c784d767edff395858845b Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Sat, 9 Mar 2013 15:50:30 -0500 Subject: [PATCH] Make sure item has a place to store local meta before trying to store there --- .../Providers/ProviderManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MediaBrowser.Server.Implementations/Providers/ProviderManager.cs b/MediaBrowser.Server.Implementations/Providers/ProviderManager.cs index 5accc06d7..a8239deb4 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);