Skip to content

Releases: glut23/webvtt-py

0.5.1 (30-05-2024)

30 May 13:46
Compare
Choose a tag to compare
  • Added voice span support (#55)
  • Extended from_buffer support to allow BytesIO and also other format conversions (#32)
  • Fixed save SRT to not include cue tags, thanks to @lilaboc <https://github.com/lilaboc>_ (#56)
  • Fixed saved caption to include a line break after the last caption as per standard (#49)

0.5.0 (15-05-2024)

15 May 16:13
Compare
Choose a tag to compare
  • Added styles support
  • Added comments support
  • Added from_string
  • Added iterate over a slice of captions
  • Refactor of the library
  • Parser is no longer strict and ignores malformed blocks
  • Improved BOM support allowing to keep the BOM or remove it
  • Deprecated read_buffer in favor of from_buffer
  • Removed support for old versions of Python: 3.4, 3.5 and 3.6

0.4.6 (18-11-2020)

18 Nov 10:18
Compare
Choose a tag to compare
  • Add capability to get WebVTT formatted content without an output file, thanks to @DawoudSheraz (#34)
  • Add Python 3.9 support

0.4.5 (09-04-2020)

09 Apr 09:26
Compare
Choose a tag to compare
  • Fix issue reading buffer

0.4.4 (27-03-2020)

27 Mar 19:21
Compare
Choose a tag to compare
  • Allow parsing empty SBV captions, thanks to @ishunyu (#26)
  • Fix invalid time cues, thanks to @sontek (#19)
  • Enable pytest as test runner, thanks to @sontek (#20)
  • Packaging improvements
  • Added Python 3.8 support
  • Improve parsing empty lines

0.4.3 (22-11-2019)

22 Nov 18:14
Compare
Choose a tag to compare

0.4.2 (08-06-2018)

08 Jun 19:14
Compare
Choose a tag to compare
  • Renamed and reorganized few of the modules
  • Parsing methods are now class methods: read, from_srt and from_sbv
  • Improved usability with the addition of shortcuts to avoid instantiating the classes so we can do:

import webvtt

webvtt.read('captions.vtt') # this will return a WebVTT instance

0.4.1 (24-12-2017)

24 Dec 16:47
Compare
Choose a tag to compare
  • Support for saving cue identifiers

0.4.0 (18-09-2017)

18 Sep 21:28
Compare
Choose a tag to compare

The main goal of this release is a refactor of the WebVTT parser to be able to parse easier and give support to new features of the format.

New features:

  • Support for cue identifiers
  • Support for parsing WebVTT captions with comments
  • Support for parsing WebVTT captions with Style blocks
  • Support for BOM in caption files
  • Added method to write the captions to an opened file
  • Convert WebVTT to SRT format
  • Ignore empty captions in SRT format

Other:

  • Refactored WebVTT parser

0.3.3 (23-08-2017)

23 Aug 22:31
Compare
Choose a tag to compare

The text for the caption is now returned clean (tags removed). The cue text could contain tags like:

  • timestamp tags: <00:19.000>
  • class tags: <c.classname>text
  • and others...
    Important: It currently removes any tag present in the cue text. For example <b> would be removed.

Also a new attribute is available on captions to retrieve the text without cleaning tags: raw_text