Skip to content

Commit

Permalink
fix: hotfix blacklist active stream
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaisberg authored and Gaisberg committed Nov 1, 2024
1 parent c5ef5cc commit af7c5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/media/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def is_stream_blacklisted(self, stream: Stream):
return stream in self.blacklisted_streams

def blacklist_active_stream(self):
stream = next((stream for stream in self.streams if stream.infohash == self.active_stream["infohash"]), None)
stream = next((stream for stream in self.streams if stream.infohash == self.active_stream.get("infohash", None)), None)
if stream:
self.blacklist_stream(stream)
else:
Expand Down

0 comments on commit af7c5f0

Please sign in to comment.