From 10aa58b4e4c48a21a5f5e22af1cd3efb0a1d42e5 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Sun, 9 May 2021 23:16:42 -0400 Subject: [PATCH] prioritize tvdb over imdb --- modules/convert.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/convert.py b/modules/convert.py index 1462782b..27b7f822 100644 --- a/modules/convert.py +++ b/modules/convert.py @@ -291,9 +291,9 @@ class Convert: else: raise Failed(f"Agent {item_type} not supported") if anidb_id: - imdb_id = self.anidb_to_imdb(anidb_id) - if not imdb_id: - tvdb_id = self.anidb_to_tvdb(anidb_id) + tvdb_id = self.anidb_to_tvdb(anidb_id) + if not tvdb_id: + imdb_id = self.anidb_to_imdb(anidb_id) if not imdb_id and not tvdb_id: raise Failed(f"Unable to convert AniDB ID: {anidb_id} to TVDb ID or IMDb ID")