From 949b83b5f5c53dea7231cd57d829a85f8da533d5 Mon Sep 17 00:00:00 2001 From: Goldy <153996346+g0ldyy@users.noreply.github.com> Date: Wed, 20 Nov 2024 19:55:57 +0100 Subject: [PATCH] fix: a --- comet/api/stream.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/comet/api/stream.py b/comet/api/stream.py index bb3e4e4..30201a3 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -357,10 +357,14 @@ async def stream(request: Request, b64config: str, type: str, id: str): for i in range(0, len(indexed_torrents), chunk_size) ] - remove_adult_content = settings.REMOVE_ADULT_CONTENT and config["removeTrash"] + remove_adult_content = ( + settings.REMOVE_ADULT_CONTENT and config["removeTrash"] + ) tasks = [] for chunk in chunks: - tasks.append(filter(chunk, name, year, year_end, aliases, remove_adult_content)) + tasks.append( + filter(chunk, name, year, year_end, aliases, remove_adult_content) + ) filtered_torrents = await asyncio.gather(*tasks) index_less = 0