there is no modded 10.10 web interface

This commit is contained in:
rlauuzo 2024-10-28 16:18:06 +01:00 committed by GitHub
parent b286c78153
commit ce922d1b79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -536,21 +536,6 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
}
}
// search for controllers/playback/video/index.html
searchPattern = "playback-video-index-html.*.chunk.js";
filePaths = Directory.GetFiles(webPath, searchPattern, SearchOption.TopDirectoryOnly);
// should be only one file but this safer
foreach (var file in filePaths)
{
// search for class btnSkipIntro
if (File.ReadAllText(file).Contains("btnSkipIntro", StringComparison.OrdinalIgnoreCase))
{
_logger.LogInformation("Found a modified version of jellyfin-web with built-in skip button support.");
return;
}
}
// Inject the skip intro button code into the web interface.
string indexPath = Path.Join(webPath, "index.html");