Improve HTTP error handling.
Store HTTP response text in JustWatchHttpError, if error is related to the response message.
Otherwise (e.g. general connection, or timeout error) it's None.
Add monetization_types to OfferPackage
Handle more (hopefully all) HTTP errors, not just status codes. The old exception is reused, with trimmed down fields to be more generic.
Fix relative links in PyPi description, for real this time.
Fix relative links in PyPi description.
Add "Releases" URL to pyproject.toml.
Capitalize "Changelog" URL name.
I don't really know what would it mean for this project to reach 1.0.0/stable, so here it is anyways.
Change error handling - add new exceptions instead of asserts:
JustWatchHttpError- API responded with a non-2xxstatus codeJustWatchApiError- response from API has errors in JSONJustWatchError- parent for all other exceptions for easier catching
Add a lot more comprehensive documentation, created with Zensical.
Change license to MIT.
Update "Usage" in README.md so it's up to date on PyPi page.
Update README.md ToC so it's up to date on PyPi page. Also added missing unit tests.
Add two new functions:
popular- looking up currently popular titlesproviders- get data about service providers (like "Netflix") to use in filtering inpopularorsearch
popular and search allows for basic pagination with offset parameter.
search can now be used without specified title, making it oddly similar to popular, but oh well. I figured it out after popular was ready.
Apparently, even it's discouraged according to PEP 639, it's still needed to get correct license on PyPi.
Add two new functions - one for seasons and one for episodes. They allow for getting more granular information - offers for individual seasons, or episodes; rather than show as a whole.
Query for:
- scoring (IMDB, TMDB, Rotten Tomatoes, JustWatch)
- JustWatch likes and dislikes
- JustWatch charts/ranks
- age certification
Add TMDB ID to responses.
Remove default element_count, if not found in API response use None.
Add 2 new commands:
details - look up details for a single entry by its node ID
offers_for_countries - look up offers for a single entry by its node ID, allows for specifying multiple countries
Add "short_description" to API response, matching "showDescription" field in GraphQL API.
Update data structures and media formats in README.md.
Add "runtime" field.
Update poster type hint to include "None".
Fix issue where GraphQL API didn't return poster URL, now in this situation this API will set "None" as poster. Specify offer icon format to "PNG". Previously it would leave "{format}" in offer icon URL.
Add example response to README.md.
Fix auto-generated docs.
Combine parser and requests module, add more docstrings.
Rename main module to simplejustwatchapi.
Minor fixes.
Fix IMDb URL type hint, fix poster and entry URL.
Initial release.