Skip to content

fix: avoid duplicate subtitle filtering in autoclip methods#161

Merged
tatsumoto-ren merged 1 commit intoAjatt-Tools:masterfrom
mosaic-roll:master
Feb 18, 2026
Merged

fix: avoid duplicate subtitle filtering in autoclip methods#161
tatsumoto-ren merged 1 commit intoAjatt-Tools:masterfrom
mosaic-roll:master

Conversation

@mosaic-roll
Copy link
Copy Markdown
Contributor

Previously, the clipboard_prepare function was called twice during the auto-copy process.
This didn't cause issues before because it only handled simple text trimming, where repeating the process didn't change the final result.

However, after adding apply_custom_subtitle_filter, the second call would process text that had already been filtered. This leads to bugs if the custom script expects raw subtitles.

This commit ensures that filtering is only performed once per action.

@tatsumoto-ren tatsumoto-ren merged commit 4497095 into Ajatt-Tools:master Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants