forked from JustAMan/JavascriptSubtitlesOctopus
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
renderAhead, dropAllAnimations: fix animation detection
Fixes the animation detection (and removal) initially introduced in the misleadingly named "Less zealous logging" commit 6980deb The old version was not detecting valid ASS tags like '\t (\frz50' and did some other checks not backed by ASS' behaviour. Rewrite it from scratch to not miss any animated tags. The previous version made an attempt to also detect and not report noop animation tags like '\move(1,1,1,1)'; the new version does not as correctly parsing the tag and its values is simply more effort than its worth and likely to result in false negatives. Noop animation tags should be sufficiently rare anyway.
- Loading branch information
1 parent
5ab8af3
commit b619f0b
Showing
1 changed file
with
96 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters