From e9807f989f14e9a0568ccea1e1833fd840085337 Mon Sep 17 00:00:00 2001 From: YozoraXCII <96386153+YozoraXCII@users.noreply.github.com> Date: Sun, 19 Jan 2025 20:35:21 +0000 Subject: [PATCH] [53] Append imdb ID to OMDb API query to resolve ongoing OMDb API issue (#2453) --- CHANGELOG | 3 ++- VERSION | 2 +- modules/omdb.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 50e7d951..6f7a9eaf 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -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 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 an issue where `show_missing` would display missing movies against show libraries (closes #2351) \ No newline at end of file +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 \ No newline at end of file diff --git a/VERSION b/VERSION index a1b9d9b2..dd2a72f7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.0-build52 +2.1.0-build53 diff --git a/modules/omdb.py b/modules/omdb.py index 6d409844..a014f946 100644 --- a/modules/omdb.py +++ b/modules/omdb.py @@ -72,7 +72,7 @@ class OMDb: if omdb_dict and expired is False: return OMDbObj(imdb_id, omdb_dict) 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: omdb = OMDbObj(imdb_id, response.json()) if self.cache and not ignore_cache: