Skip to content

Commit

Permalink
fix: less cpu cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
iPromKnight committed Nov 7, 2024
1 parent 2d3200e commit 1257bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/services/downloaders/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def update_item_attributes(self, item: MediaItem, info, container) -> bool:
item.active_stream = {"infohash": info["hash"], "id": info["id"]}
found = True
break
if item.type in (media_type.value for media_type in ShowMediaType):
if item.type in (ShowMediaType.Show.value, ShowMediaType.Season.value, ShowMediaType.Episode.value):
show = item
if item.type == ShowMediaType.Season.value:
show = item.parent
Expand Down

0 comments on commit 1257bfe

Please sign in to comment.