Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

v1.1.2 Bugfix (and other small changes)

Latest
Compare
Choose a tag to compare
@CosmicHorrorDev CosmicHorrorDev released this 29 May 01:43
· 89 commits to master since this release

Bugfixes

  • (174bc95) xml.parsers.expat.ExpatErrors from the API are now re-exposed as SubServerErrors to give more appropriate context.
  • (4a38a8c) Fixed a bug where .download_subtitles(...) was updated to take SubtitlesInfo along with SearchResult: however, the helper function ._download_subtitles(...) was not fully updated to accept these changes appropriately.
  • (e3c1059) Fixed a bug where filename and dirname weren't renamed from faked Media in .download_subtitles(...) leading to an error when trying to download with SubtitlesInfo. This was updated to avoid faking Media in general since it seems to be an error-prone solution. The test was updated to better cover the different cases.

Docs

  • (23f03a2) Added another example to show off some more functionality provided by the library (namely .suggest_media(...), .preview_subtitles(...), .user_info(), and actually using some custom extended MovieInfo and TvSeriesInfo
  • Some outdated information in the docs was found and updated

Dev tools

  • (f079f70) Added in a tool that can generate files with a specified size and special_hash. This allows people to test functionality requiring local files without actually having them in cases where it would be cumbersome to build the Media.from_parts.