Skip to content

Commit

Permalink
feat: autplay
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy authored Sep 18, 2024
1 parent 1333500 commit 1147845
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions comet/api/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,10 @@ async def stream(request: Request, b64config: str, type: str, id: str):
else None
),
"url": f"{request.url.scheme}://{request.url.netloc}/{b64config}/playback/{hash}/{data['index']}",
"behaviorHints": {
"filename": data["raw_title"],
"bingeGroup": "comet|" + hash,
},
}
)

Expand Down Expand Up @@ -420,6 +424,10 @@ async def stream(request: Request, b64config: str, type: str, id: str):
"torrentTitle": data["torrent_title"],
"torrentSize": data["torrent_size"],
"url": f"{request.url.scheme}://{request.url.netloc}/{b64config}/playback/{hash}/{data['index']}",
"behaviorHints": {
"filename": data["raw_title"],
"bingeGroup": "comet|" + hash,
},
}
)

Expand Down

0 comments on commit 1147845

Please sign in to comment.