Provide a warning about cache option

This commit is contained in:
TwistedUmbrellaX 2024-03-02 11:53:34 -05:00
parent f670e76744
commit d7c587694f
2 changed files with 3 additions and 3 deletions

View File

@ -68,6 +68,8 @@
<div class="fieldDescription">
If checked, episode fingerprints will be cached to the filesystem
<br />
<strong>WARNING: Disabling cache may result in lengthy detection</strong>
<br />
</div>
</div>

View File

@ -333,8 +333,6 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
// Parts of this code are based off of JellyScrub's script injection code.
// https://github.com/nicknsy/jellyscrub/blob/4ce806f602988a662cfe3cdbaac35ee8046b7ec4/Nick.Plugin.Jellyscrub/JellyscrubPlugin.cs
_logger.LogInformation("Adding skip button to {Path}", indexPath);
_logger.LogDebug("Reading index.html from {Path}", indexPath);
var contents = File.ReadAllText(indexPath);
_logger.LogDebug("Successfully read index.html");
@ -358,6 +356,6 @@ public class Plugin : BasePlugin<PluginConfiguration>, IHasWebPages
_logger.LogDebug("Saving modified file");
File.WriteAllText(indexPath, contents);
_logger.LogInformation("Skip intro button successfully added to web interface");
_logger.LogInformation("Skip intro button successfully added");
}
}