From 51e11eb3e3c52896f12075c6a53e1bdbf14f6059 Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Sat, 9 Mar 2013 15:27:35 -0500 Subject: [PATCH 1/2] Only run ffprobe on local content --- .../Providers/MediaInfo/FFProbeVideoInfoProvider.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs b/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs index 72d2100438..06692b2bc1 100644 --- a/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs +++ b/MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs @@ -85,6 +85,11 @@ namespace MediaBrowser.Controller.Providers.MediaInfo /// true if XXXX, false otherwise public override bool Supports(BaseItem item) { + if (item.LocationType != LocationType.FileSystem) + { + return false; + } + var video = item as Video; if (video != null) From 6ebab4a965e2b79599c784d767edff395858845b Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Sat, 9 Mar 2013 15:50:30 -0500 Subject: [PATCH 2/2] 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 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);