Skip to content

Releases: BufferingIO/PyTitle

Relased v0.1.6

12 Apr 16:30
Compare
Choose a tag to compare
Relased v0.1.6 Pre-release
Pre-release

Changelog

0.1.6 - 2022-4-12

Added

  • docstring for __init__.py file, add short project description
  • add Timing.shift and SrtSubtitle.shift for shifting the timing of lines forward or backward
  • add SrtSubtitle.shift_forward and SrtSubtitle.shift_backward as a shorthand for SrtSubtitle.shift
  • add exception classes to raise them instead of generic exceptions

Changed

  • fixed some typos in docstrings
  • removed custom __eq__ and __ne__ from the Timestamp and let pydantic handle that
  • changed the value limits for Timestamp attributes, Timestamp.hours can be any integer >= 0 now
  • fixed how __add__ and __sub__ were calculating and fixed overflows to add or subtract the times correctly