Skip to content

Commit

Permalink
fix: movie obj trying to index as show type
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Sep 5, 2024
1 parent aecaf37 commit c0e1e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/indexers/trakt.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def copy_items(self, itema: MediaItem, itemb: MediaItem):
is_anime = itema.is_anime or itemb.is_anime
if itema.type == "mediaitem" and itemb.type == "show":
itema.seasons = itemb.seasons
if itemb.type == "show":
if itemb.type == "show" and itema.type != "movie":
for seasona in itema.seasons:
for seasonb in itemb.seasons:
if seasona.number == seasonb.number: # Check if seasons match
Expand Down

0 comments on commit c0e1e2c

Please sign in to comment.