Skip to content

v1.3.0

Compare
Choose a tag to compare
@rlaphoenix rlaphoenix released this 16 Apr 02:53
· 42 commits to master since this release

Added

  • Sphinx documentation to /docs and automated builds with ReadTheDocs at https://pydvdcss.readthedocs.io
  • Added dunamai dependency for use in the Documentation.
  • Added poetry-dynamic-versioning dependency for automating the package version listed in pyproject.
  • The libdvdcss shared library .so/.dll files are now also searched locally relative to the project.

Changed

  • Exceptions raised when loading the library is now bubbled up instead of absorbed and ignored.
  • Create buffer with a default of an empty byte-string in read() so if libdvdcss reads nothing, we get b'' instead
    of b'\x00' * size.
  • Raise an IOError if libdvdcss read less than 0 bytes (an error result).
  • read() now returns the read bytes instead of how many bytes were read.

Removed

  • Removed leftover print() statement used during debugging.

Fixed

  • Discard handle if libdvdcss returns a handle of 0, returns -1.
  • Fix ctype used for the handle, change from c_long to c_void_p.
  • Remove buffer and the buffer_len check, always use a new buffer when reading. This is to avoid potentially taking
    the previous buffer contents and overwriting it with < buffer size, resulting in the end bytes keeping the old data
    instead of x00, or just no bytes at all there, or just the wrong entire buffer of data.