fix: direct torrent results

This commit is contained in:
Munif Tanjim
2025-01-08 16:09:21 +06:00
parent 786a2985ca
commit dea8a9041c
+1 -1
View File
@@ -235,7 +235,7 @@ async def stream(
)
else:
the_stream["infoHash"] = hash
index = data["index"]
index = str(data["index"])
the_stream["fileIdx"] = (
1 if "|" in index else int(index)
) # 1 because for Premiumize it's impossible to get the file index