From af7c5f05310a4998ecf56a99cb552c67cfa3d3ba Mon Sep 17 00:00:00 2001 From: Gaisberg Date: Fri, 1 Nov 2024 11:24:39 +0200 Subject: [PATCH] fix: hotfix blacklist active stream --- src/program/media/item.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/program/media/item.py b/src/program/media/item.py index 23987645..4758485b 100644 --- a/src/program/media/item.py +++ b/src/program/media/item.py @@ -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: