Browse Source

Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser

LukePulverenti 12 years ago
parent
commit
913cb3c564

+ 5 - 0
MediaBrowser.Controller/Providers/MediaInfo/FFProbeVideoInfoProvider.cs

@@ -85,6 +85,11 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
         /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
         public override bool Supports(BaseItem item)
         {
+            if (item.LocationType != LocationType.FileSystem)
+            {
+                return false;
+            }
+
             var video = item as Video;
 
             if (video != null)

+ 1 - 1
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);