diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-31 16:25:14 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-01-31 16:25:14 -0500 |
| commit | ead2afcca0bb980a01f67c4f658d3118b99a18fc (patch) | |
| tree | 5b1e35d7e743b2fd1c02131264059d3655cd4fb2 | |
| parent | 9a0c5e3bda434c52b285fd93ac94e482fd365cd2 (diff) | |
update html preparation
| -rw-r--r-- | MediaBrowser.WebDashboard/Api/PackageCreator.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/MediaBrowser.WebDashboard/Api/PackageCreator.cs b/MediaBrowser.WebDashboard/Api/PackageCreator.cs index 7a788f6f0..d2ec65456 100644 --- a/MediaBrowser.WebDashboard/Api/PackageCreator.cs +++ b/MediaBrowser.WebDashboard/Api/PackageCreator.cs @@ -151,10 +151,13 @@ namespace MediaBrowser.WebDashboard.Api if (index != -1) { html = html.Substring(index); + + html = html.Substring(html.IndexOf('>') + 1); + index = html.IndexOf("</body>", StringComparison.OrdinalIgnoreCase); if (index != -1) { - html = html.Substring(0, index+7); + html = html.Substring(0, index); } } var mainFile = _fileSystem.ReadAllText(GetDashboardResourcePath("index.html")); |
