Skip to content

Commit

Permalink
fix: Return list of seasons as 0
Browse files Browse the repository at this point in the history
This results from specials or extras that don't have a season set
  • Loading branch information
soerenschneider committed Sep 17, 2021
1 parent f9eb468 commit 1d9b89d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lootorganizer/guesser.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ def guess(self, filename: str) -> Dict:
if isinstance(guess_result["title"], list):
guess_result["title"] = guess_result["title"][0]

if isinstance(guess_result["season"], list):
guess_result["season"] = 0

return guess_result

0 comments on commit 1d9b89d

Please sign in to comment.