Exceptions renamed, declared 1.0.
Utilizing f–strings.
Stylistic changes in the parser.
Bug fix: to_secs() couldn’t handle negative values unless they were “complete”, meaning had all the parts (hours, minutes and seconds).
text
in SubtextEntry
is now a @property
and always looks like a str
from the user’s point of view; this makes it easier to find text (but also the parser method more complex). All functions that accept time arguments now accept both time strings and numerics. More nuanced parse error exceptions. Bug fix: SubtextLayer.insert()
only modified a local reference; now it calls super().insert()
which works.
A small stylistic change.
Started from older srtfix
1.3.1. Added move_to()
method, renamed move()
to move_by()
.