diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html index bc6b5f6..5abfdd3 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Configuration/configPage.html @@ -9,6 +9,19 @@
+
@@ -55,12 +68,15 @@
If checked, episode fingerprints will be cached to the filesystem
+ WARNING: Disabling cache may result in lengthy detection +
EDL file generation +
+
+ +
+ Fingerprint Editor + +
+

Select episodes to manage

+
+ + +
+ + + +
+
+ + + + +
+ + +
+
+ +

Fingerprint Visualizer

+

+ Interactively compare the audio fingerprints of two episodes.
+ The blue and red bar to the right of the fingerprint diff turns blue + when the corresponding fingerprint points are at least 80% similar. +

+ + + + + + + + + + + + + + + + + + + + + + + +
KeyFunction
Up arrow + Shift the left episode up by 0.128 seconds. + Holding control will shift the episode by 10 seconds. +
Down arrow + Shift the left episode down by 0.128 seconds. + Holding control will shift the episode by 10 seconds. +
Right arrowAdvance to the next pair of episodes.
Left arrowGo back to the previous pair of episodes.
+
+ + Shift amount: + +
+ Suggested shifts: +
+
+ + + +
+ +
+
+
- -
- Support Bundle - - -
-
- -
- Advanced - -

Select episodes to manage

- - -
- - - -
-
- - - - -
- - -
-
- -

Fingerprint Visualizer

-

- Interactively compare the audio fingerprints of two episodes.
- The blue and red bar to the right of the fingerprint diff turns blue - when the corresponding fingerprint points are at least 80% similar. -

- - - - - - - - - - - - - - - - - - - - - - - -
KeyFunction
Up arrow - Shift the left episode up by 0.128 seconds. - Holding control will shift the episode by 10 seconds. -
Down arrow - Shift the left episode down by 0.128 seconds. - Holding control will shift the episode by 10 seconds. -
Right arrowAdvance to the next pair of episodes.
Left arrowGo back to the previous pair of episodes.
-
- - Shift amount: - -
- Suggested shifts: -
-
- - - -
- -
-
-
diff --git a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs index 8ff597a..7f57af8 100644 --- a/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs +++ b/ConfusedPolarBear.Plugin.IntroSkipper/Plugin.cs @@ -85,7 +85,7 @@ public class Plugin : BasePlugin, IHasWebPages var indexPath = Path.Join(applicationPaths.WebPath, "index.html"); try { - InjectSkipButton(indexPath, Path.Join(introsDirectory, "index-pre-skip-button.html")); + InjectSkipButton(indexPath); } catch (Exception ex) { @@ -328,14 +328,11 @@ public class Plugin : BasePlugin, IHasWebPages /// Inject the skip button script into the web interface. /// /// Full path to index.html. - /// Full path to create a backup of index.html at. - private void InjectSkipButton(string indexPath, string backupPath) + private void InjectSkipButton(string indexPath) { // 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"); @@ -349,10 +346,6 @@ public class Plugin : BasePlugin, IHasWebPages return; } - // Backup the original version of the web interface - _logger.LogInformation("Backing up index.html to {Backup}", backupPath); - File.WriteAllText(backupPath, contents); - // Inject a link to the script at the end of the section. // A regex is used here to ensure the replacement is only done once. _logger.LogDebug("Injecting script tag"); @@ -363,6 +356,6 @@ public class Plugin : BasePlugin, 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"); } } diff --git a/manifest.json b/manifest.json index b9de3ec..7c02a7f 100644 --- a/manifest.json +++ b/manifest.json @@ -8,6 +8,14 @@ "category": "General", "imageUrl": "https://raw.githubusercontent.com/jumoog/intro-skipper/master/images/logo.png", "versions": [ + { + "version": "0.1.12.0", + "changelog": "- See the full changelog at [GitHub](https://github.com/jumoog/intro-skipper/blob/master/CHANGELOG.md)\n", + "targetAbi": "10.8.4.0", + "sourceUrl": "https://github.com/jumoog/intro-skipper/releases/download/v0.1.12/intro-skipper-v0.1.12.zip", + "checksum": "5851f2d7036bcd56817f66983a8e1190", + "timestamp": "2024-03-02T13:21:04Z" + }, { "version": "0.1.11.0", "changelog": "- See the full changelog at [GitHub](https://github.com/jumoog/intro-skipper/blob/master/CHANGELOG.md)\n",