Skip to content

Commit

Permalink
Set default tvmaze so rest of code doesn't bitch and moan
Browse files Browse the repository at this point in the history
  • Loading branch information
Audionut committed Dec 19, 2024
1 parent 8f5406a commit ba63143
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])
Expand Down

0 comments on commit ba63143

Please sign in to comment.