Skip to content

Commit

Permalink
Update version, usage and history
Browse files Browse the repository at this point in the history
  • Loading branch information
glut23 committed Nov 22, 2019
1 parent 9dbfcf9 commit eeac8a1
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
7 changes: 7 additions & 0 deletions docs/history.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
History
=======

0.4.3 (22-11-2019) Few improvements
-----------------------------------

* 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 (08-06-2018) Rename of modules and usability improvements
---------------------------------------------------------------

Expand Down
18 changes: 18 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,24 @@ Reading WebVTT caption files
'crédit de transcription'
Reading WebVTT caption files from file-like object
--------------------------------------------------

.. code-block:: python
import webvtt
import requests
from io import StringIO
payload = requests.get('http://subtitles.com/1234.vtt').text()
buffer = StringIO(payload)
for caption in webvtt.read_buffer(buffer):
print(caption.start)
print(caption.end)
print(caption.text)
Creating captions
-----------------

Expand Down
2 changes: 1 addition & 1 deletion webvtt/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.4.2'
__version__ = '0.4.3'

from .webvtt import *
from .segmenter import *
Expand Down

0 comments on commit eeac8a1

Please sign in to comment.