feat(aniskip): detect intros and outros from file chapters and AniSkip v2 (#334)

This commit is contained in:
sudacode authored and GitHub committed 2026-11-22 21:02:54 -08:00
1 parent ee52664655
commit ac3ceab856
16 files changed
+1077 -286

No files matched your search

+3 -1
View File
@@ -1118,7 +1118,8 @@ export function createPlaybackAssembly(deps: PlaybackAssemblyDeps) {
aniskipEnabled: configService.getConfig().mpv.aniskipEnabled,
aniskipButtonKey: configService.getConfig().mpv.aniskipButtonKey,
}),
resolveMetadataForFile: (mediaPath) => resolveAniSkipMetadataForFile(mediaPath),
resolveMetadataForFile: (mediaPath, episodeLength) =>
resolveAniSkipMetadataForFile(mediaPath, { episodeLength }),
sendMpvCommand: (command) => {
appState.mpvClient?.send({ command });
},
@@ -1163,6 +1164,7 @@ export function createPlaybackAssembly(deps: PlaybackAssemblyDeps) {
});
client.on('connection-change', aniSkipRuntime.handleConnectionChange);
client.on('media-path-change', aniSkipRuntime.handleMediaPathChange);
client.on('duration-change', aniSkipRuntime.handleDurationChange);
client.on('time-pos-change', aniSkipRuntime.handleTimePosChange);
client.on('client-message', aniSkipRuntime.handleClientMessage);
deps.getPluginHost().attachMpvClient(client);