Skip to content

Commit

Permalink
fix: direct torrent results
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Jan 8, 2025
1 parent e1ae0c0 commit b1fd695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion comet/api/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1fd695

Please sign in to comment.