[37] tvdb_id anime lookups default to season 1

pull/1400/head
meisnate12 2 years ago
parent d093692a6d
commit 1cc14b0058

@ -1 +1 @@
1.19.0-develop36 1.19.0-develop37

@ -35,7 +35,8 @@ class Convert:
self._imdb_to_anidb[im_id] = anidb_id self._imdb_to_anidb[im_id] = anidb_id
if "tvdb_id" in ids: if "tvdb_id" in ids:
self._anidb_to_tvdb[anidb_id] = int(ids["tvdb_id"]) 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): def imdb_to_anidb(self, imdb_id):
if imdb_id in self._imdb_to_anidb: if imdb_id in self._imdb_to_anidb:

Loading…
Cancel
Save