From 1cc14b0058763f73f43c11ae5b21de8726522ec7 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Wed, 26 Apr 2023 11:42:53 -0400 Subject: [PATCH] [37] tvdb_id anime lookups default to season 1 --- VERSION | 2 +- modules/convert.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index cd2f0bc9..f5d6d0c6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.19.0-develop36 +1.19.0-develop37 diff --git a/modules/convert.py b/modules/convert.py index 5778baae..5ee9baa7 100644 --- a/modules/convert.py +++ b/modules/convert.py @@ -35,7 +35,8 @@ class Convert: self._imdb_to_anidb[im_id] = anidb_id if "tvdb_id" in ids: self._anidb_to_tvdb[anidb_id] = int(ids["tvdb_id"]) - self._tvdb_to_anidb[int(ids["tvdb_id"])] = anidb_id + if "tvdb_season" in ids and ids["tvdb_season"] == 1: + self._tvdb_to_anidb[int(ids["tvdb_id"])] = anidb_id def imdb_to_anidb(self, imdb_id): if imdb_id in self._imdb_to_anidb: