From dea8a9041cb54245e2fdadd9d914c0285efebc56 Mon Sep 17 00:00:00 2001 From: Munif Tanjim Date: Wed, 8 Jan 2025 16:09:21 +0600 Subject: [PATCH] fix: direct torrent results --- comet/api/stream.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comet/api/stream.py b/comet/api/stream.py index 7dc5149..bab198c 100644 --- a/comet/api/stream.py +++ b/comet/api/stream.py @@ -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