From 41e4519dbc24a75270ada6e7f20fac34bb3aa215 Mon Sep 17 00:00:00 2001 From: Prinz23 Date: Fri, 26 May 2023 03:08:56 +0200 Subject: [PATCH] Fix IMDB fetch from TheTVDb API. --- CHANGES.md | 7 ++++++- lib/api_tvdb/tvdb_api.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 3ce2f3fe..8179d407 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,9 @@ -### 3.29.0 (2023-05-22 00:25:00 UTC) +### 3.29.1 (2023-05-26 06:10:00 UTC) + +* Fix IMDB fetch from TheTVDb API + + +### 3.29.0 (2023-05-22 00:25:00 UTC) * Change minimum required Python to version 3.8 * Update Apprise 1.2.1 (3d07004) to 1.3.0 (6458ab0) diff --git a/lib/api_tvdb/tvdb_api.py b/lib/api_tvdb/tvdb_api.py index e365fb7b..b90f3a44 100644 --- a/lib/api_tvdb/tvdb_api.py +++ b/lib/api_tvdb/tvdb_api.py @@ -1081,7 +1081,7 @@ class Tvdb(TVInfoBase): ti_show.imdb_id = clean_data(show_data.get('imdb_id')) or None ti_show.airs_time = clean_data(show_data.get('airs_time')) ti_show.airs_dayofweek = clean_data(show_data.get('airs_dayofweek')) - ti_show.ids = TVInfoIDs(tvdb=ti_show.id, imdb=try_int(ti_show.imdb_id.replace('tt', ''), None)) + ti_show.ids = TVInfoIDs(tvdb=ti_show.id, imdb=try_int(str(ti_show.imdb_id).replace('tt', ''), None)) else: show_data = {'data': {}}