mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-11-22 16:46:10 -08:00
feat(aniskip): detect intros and outros from file chapters and AniSkip v2
- Read mpv's chapter-list first and classify the file's own opening and ending (names incl. Japanese, else song-length heuristics, ported from Telly); ask AniSkip only for what the chapters lack. Chapter detection also runs for remote streams; AniSkip stays local-only. - Query AniSkip v2 with episodeLength from mpv's duration and parse both op and ed. Requests are spaced at least 1 s apart. - The skip key now skips whichever of the intro or outro is playing, with an outro prompt and AniSkip Outro Start/End chapter markers. - Fix transient AniSkip/MAL failures (non-404 errors, network, timeouts) being cached as a definite miss; only 404s and unmatched titles are cached.
This commit is contained in:
16 files changed
+844
-291
No files matched your search
@@ -229,7 +229,7 @@ script-message subminer-start backend=hyprland socket=/custom/path texthooker=no
|
||||
|
||||
The plugin also registers `subminer-autoplay-ready`, `subminer-autoplay-hold`, `subminer-visible-overlay-shown`, `subminer-visible-overlay-hidden`, `subminer-managed-subtitles-loading`, `subminer-overlay-loading-ready`, `subminer-overlay-loading-dismissed`, and `subminer-reload-session-bindings`. The SubMiner app sends these to keep the plugin in sync, so do not send them from your own scripts.
|
||||
|
||||
While the app is connected to mpv, it also handles two AniSkip messages over the mpv IPC socket: `subminer-skip-intro` skips the intro, and `subminer-aniskip-refresh` reloads intro data, for example after your script changes title or episode metadata.
|
||||
While the app is connected to mpv, it also handles two AniSkip messages over the mpv IPC socket: `subminer-skip-intro` skips the intro or outro that is playing, and `subminer-aniskip-refresh` reloads intro and outro data, for example after your script changes title or episode metadata.
|
||||
|
||||
## Related pages
|
||||
|
||||
|
||||
Reference in new issue
Block a user