[53] Append imdb ID to OMDb API query to resolve ongoing OMDb API issue (#2453)

pull/2448/merge
YozoraXCII 3 days ago committed by GitHub Action
parent 53778703de
commit e9807f989f

@ -61,4 +61,5 @@ Fixed an issue where custom repositories would not work correctly if the URL did
Kometa will now check for `.yaml` extension in filenames if `.yml` is not found and vice-versa Kometa will now check for `.yaml` extension in filenames if `.yml` is not found and vice-versa
Kometa will no longer automatically sync playlists to all users if you do not specify who you want to sync them to. Only the server admin will receive playlists unless otherwise specified using `sync_to_users` or `playlist_sync_to_users` Kometa will no longer automatically sync playlists to all users if you do not specify who you want to sync them to. Only the server admin will receive playlists unless otherwise specified using `sync_to_users` or `playlist_sync_to_users`
Fixes #2385 `tmdb_person` would pass an integer if the name started with an integer (i.e. `50 Cent` would pass `50` which resolved to `Catherine Deneuve`) Fixes #2385 `tmdb_person` would pass an integer if the name started with an integer (i.e. `50 Cent` would pass `50` which resolved to `Catherine Deneuve`)
Fixes an issue where `show_missing` would display missing movies against show libraries (closes #2351) Fixes an issue where `show_missing` would display missing movies against show libraries (closes #2351)
Fixed an OMDb API issue where API key would intermittently be treated as invalid

@ -1 +1 @@
2.1.0-build52 2.1.0-build53

@ -72,7 +72,7 @@ class OMDb:
if omdb_dict and expired is False: if omdb_dict and expired is False:
return OMDbObj(imdb_id, omdb_dict) return OMDbObj(imdb_id, omdb_dict)
logger.trace(f"IMDb ID: {imdb_id}") logger.trace(f"IMDb ID: {imdb_id}")
response = self.requests.get(base_url, params={"i": imdb_id, "apikey": self.apikey}) response = self.requests.get(base_url, params={"apikey": self.apikey, "i": imdb_id})
if response.status_code < 400: if response.status_code < 400:
omdb = OMDbObj(imdb_id, response.json()) omdb = OMDbObj(imdb_id, response.json())
if self.cache and not ignore_cache: if self.cache and not ignore_cache:

Loading…
Cancel
Save