Use IsHostingContent instead of explicitly checking ContentRoot

This commit is contained in:
Mark Monteiro
2020-02-26 16:11:09 +01:00
parent 192ec57b60
commit d95ccbacac
2 changed files with 3 additions and 3 deletions

View File

@@ -268,7 +268,7 @@ namespace Jellyfin.Server
.UseStartup<Startup>();
// Set the root directory for static content, if one exists
if (!string.IsNullOrEmpty(appHost.ContentRoot))
if (appHost.IsHostingContent)
{
webhostBuilder.UseContentRoot(appHost.ContentRoot);
}