Luke Pulverenti 9 лет назад
Родитель
Сommit
bcfe86dd16

+ 9 - 0
MediaBrowser.Controller/Entities/Audio/MusicArtist.cs

@@ -79,6 +79,15 @@ namespace MediaBrowser.Controller.Entities.Audio
             }
             }
         }
         }
 
 
+        public override int GetChildCount(User user)
+        {
+            if (IsAccessedByName)
+            {
+                return 0;
+            }
+            return base.GetChildCount(user);
+        }
+
         public override bool IsSaveLocalMetadataEnabled()
         public override bool IsSaveLocalMetadataEnabled()
         {
         {
             if (IsAccessedByName)
             if (IsAccessedByName)

+ 0 - 1
MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegInstallInfo.cs

@@ -8,7 +8,6 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
         public string FFProbeFilename { get; set; }
         public string FFProbeFilename { get; set; }
         public string ArchiveType { get; set; }
         public string ArchiveType { get; set; }
         public string[] DownloadUrls { get; set; }
         public string[] DownloadUrls { get; set; }
-        public bool IsEmbedded { get; set; }
 
 
         public FFMpegInstallInfo()
         public FFMpegInstallInfo()
         {
         {

+ 0 - 16
MediaBrowser.Server.Startup.Common/FFMpeg/FFMpegLoader.cs

@@ -197,22 +197,6 @@ namespace MediaBrowser.Server.Startup.Common.FFMpeg
 
 
         private async Task DownloadFFMpeg(FFMpegInstallInfo downloadinfo, string directory, IProgress<double> progress)
         private async Task DownloadFFMpeg(FFMpegInstallInfo downloadinfo, string directory, IProgress<double> progress)
         {
         {
-            if (downloadinfo.IsEmbedded)
-            {
-                var tempFile = Path.Combine(_appPaths.TempDirectory, Guid.NewGuid().ToString());
-                _fileSystem.CreateDirectory(Path.GetDirectoryName(tempFile));
-
-                using (var stream = _ownerAssembly.GetManifestResourceStream(downloadinfo.DownloadUrls[0]))
-                {
-                    using (var fs = _fileSystem.GetFileStream(tempFile, FileMode.Create, FileAccess.Write, FileShare.Read, true))
-                    {
-                        await stream.CopyToAsync(fs).ConfigureAwait(false);
-                    }
-                }
-                ExtractFFMpeg(downloadinfo, tempFile, directory);
-                return;
-            }
-
             foreach (var url in downloadinfo.DownloadUrls)
             foreach (var url in downloadinfo.DownloadUrls)
             {
             {
                 progress.Report(0);
                 progress.Report(0);

+ 0 - 1
MediaBrowser.ServerApplication/Native/WindowsApp.cs

@@ -160,7 +160,6 @@ namespace MediaBrowser.ServerApplication.Native
             info.FFProbeFilename = "ffprobe.exe";
             info.FFProbeFilename = "ffprobe.exe";
             info.Version = "20160410";
             info.Version = "20160410";
             info.ArchiveType = "7z";
             info.ArchiveType = "7z";
-            info.IsEmbedded = false;
             info.DownloadUrls = GetDownloadUrls();
             info.DownloadUrls = GetDownloadUrls();
 
 
             return info;
             return info;