This commit is contained in:
Goldy
2024-11-20 19:55:57 +01:00
parent 6a051cd205
commit 949b83b5f5
+6 -2
View File
@@ -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