Browse Source

Make use of WebPath

Joshua Boniface 6 năm trước cách đây
mục cha
commit
25deca9579

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -621,7 +621,7 @@ namespace Emby.Server.Implementations
             string contentRoot = ServerConfigurationManager.Configuration.DashboardSourcePath;
             string contentRoot = ServerConfigurationManager.Configuration.DashboardSourcePath;
             if (string.IsNullOrEmpty(contentRoot))
             if (string.IsNullOrEmpty(contentRoot))
             {
             {
-                contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths.ApplicationResourcesPath, "jellyfin-web", "src");
+                contentRoot = Path.Combine(ServerConfigurationManager.ApplicationPaths,WebPath, "src");
             }
             }
 
 
             var host = new WebHostBuilder()
             var host = new WebHostBuilder()

+ 1 - 1
MediaBrowser.WebDashboard/Api/DashboardService.cs

@@ -149,7 +149,7 @@ namespace MediaBrowser.WebDashboard.Api
                     return _serverConfigurationManager.Configuration.DashboardSourcePath;
                     return _serverConfigurationManager.Configuration.DashboardSourcePath;
                 }
                 }
 
 
-                return Path.Combine(_serverConfigurationManager.ApplicationPaths.ApplicationResourcesPath, "jellyfin-web", "src");
+                return Path.Combine(_serverConfigurationManager.ApplicationPaths.WebPath, "src");
             }
             }
         }
         }