Webvtt-py

Latest version: v0.5.0

Safety actively analyzes 630305 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.5.0

------------------

* 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

------------------

* Add capability to get WebVTT formatted content without an output file, thanks to `DawoudSheraz <https://github.com/DawoudSheraz>`_ (#34)
* Add Python 3.9 support

0.4.5

------------------

* Fix issue reading buffer

0.4.4

------------------

* Allow parsing empty SBV captions, thanks to `ishunyu <https://github.com/ishunyu>`_ (#26)
* Fix invalid time cues, thanks to `sontek <https://github.com/sontek>`_ (#19)
* Enable pytest as test runner, thanks to `sontek <https://github.com/sontek>`_ (#20)
* Packaging improvements
* Added Python 3.8 support
* Improve parsing empty lines

0.4.3

------------------

* Parsing improvements, thanks to `sontek <https://github.com/sontek>`_ (#18)
* Add support for reading content from a file-like object, thanks to `omerholz <https://github.com/omerholz>`_ (#23)
* Documentation fixes thanks to `sontek <https://github.com/sontek>`_ (#22) and `netcmcc <https://github.com/netcmcc>`_ (#24)

0.4.2

------------------

* 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

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.