فهرست منبع

support .tp video container

Luke Pulverenti 8 سال پیش
والد
کامیت
3b7b06f70b
2فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  1. 2 0
      Emby.Server.Implementations/Library/LibraryManager.cs
  2. 6 0
      MediaBrowser.ServerApplication/MainStartup.cs

+ 2 - 0
Emby.Server.Implementations/Library/LibraryManager.cs

@@ -2481,6 +2481,8 @@ namespace Emby.Server.Implementations.Library
                 options.VideoFileExtensions.Remove(".zip");
                 options.VideoFileExtensions.Remove(".zip");
             }
             }
 
 
+            options.VideoFileExtensions.Add(".tp");
+
             return options;
             return options;
         }
         }
 
 

+ 6 - 0
MediaBrowser.ServerApplication/MainStartup.cs

@@ -601,6 +601,12 @@ namespace MediaBrowser.ServerApplication
         /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
         /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
         private static bool PerformUpdateIfNeeded(ServerApplicationPaths appPaths, ILogger logger)
         private static bool PerformUpdateIfNeeded(ServerApplicationPaths appPaths, ILogger logger)
         {
         {
+            // Not supported
+            if (IsRunningAsService)
+            {
+                return false;
+            }
+
             // Look for the existence of an update archive
             // Look for the existence of an update archive
             var updateArchive = Path.Combine(appPaths.TempUpdatePath, "MBServer" + ".zip");
             var updateArchive = Path.Combine(appPaths.TempUpdatePath, "MBServer" + ".zip");
             if (File.Exists(updateArchive))
             if (File.Exists(updateArchive))