From ba631439fd40b070120a202a26867c30fe9ccd04 Mon Sep 17 00:00:00 2001 From: Audionut Date: Thu, 19 Dec 2024 18:04:41 +1000 Subject: [PATCH] Set default tvmaze so rest of code doesn't bitch and moan --- src/prep.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/prep.py b/src/prep.py index 5696e393..631ebdfd 100644 --- a/src/prep.py +++ b/src/prep.py @@ -645,6 +645,8 @@ async def process_tracker(tracker_name, meta): # Search tvmaze if meta['category'] == "TV": meta['tvmaze_id'], meta['imdb_id'], meta['tvdb_id'] = await self.search_tvmaze(filename, meta['search_year'], meta.get('imdb_id', '0'), meta.get('tvdb_id', 0), meta) + else: + meta.setdefault('tvmaze_id', '0') # If no imdb, search for it if meta.get('imdb_id', None) is None: meta['imdb_id'] = await self.search_imdb(filename, meta['search_year'])