Mailing List Archive

[MythTV/mythtv] 1544bc: Python tmdb3: Add API to get correct release dates
Branch: refs/heads/fixes/32
Home: https://github.com/MythTV/mythtv
Commit: 1544bc29779433b68ac3eac23b0e95cbe3e28123
https://github.com/MythTV/mythtv/commit/1544bc29779433b68ac3eac23b0e95cbe3e28123
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2022-11-27 (Sun, 27 Nov 2022)

Changed paths:
M mythtv/bindings/python/tmdb3/tmdb3/__init__.py
M mythtv/bindings/python/tmdb3/tmdb3/lookup.py
M mythtv/bindings/python/tmdb3/tmdb3/tmdb_api.py

Log Message:
-----------
Python tmdb3: Add API to get correct release dates

The Movie Database deprecates the API call to `movie/{id}/releases`
and favours `movie/{id}/release_dates` instead.

The fetched dates are now sorted according the rules of themoviedb,
if a release for a country is available.
Otherwise, the primaray release date reported by `movie/{id}` is used.

See
https://www.themoviedb.org/
https://developers.themoviedb.org/3/
https://developers.themoviedb.org/3/movies/get-movie-release-dates
https://developers.themoviedb.org/3/movies/get-movie-details

(cherry picked from commit 6c3260c8b911a1f006eaf9a2130c4b014d7f9cf2)


_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits