aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-03-09 15:50:30 -0500
committerEric Reed <ebr@mediabrowser3.com>2013-03-09 15:50:30 -0500
commit6ebab4a965e2b79599c784d767edff395858845b (patch)
treec191afdc2bce1e41218cfcb8141af8cf4dd89eb9
parent51e11eb3e3c52896f12075c6a53e1bdbf14f6059 (diff)
Make sure item has a place to store local meta before trying to store there
-rw-r--r--MediaBrowser.Server.Implementations/Providers/ProviderManager.cs2
1 files changed, 1 insertions, 1 deletions
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);