Skip to content

Commit

Permalink
fix: speed up playback
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy committed Jul 12, 2024
1 parent 4419890 commit 683a826
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions comet/api/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,7 @@ async def playback(b64config: str, hash: str, index: str):
if not config:
return

async with aiohttp.ClientSession() as session:
debrid = getDebrid(session, config)
download_link = await debrid.generate_download_link(hash, index)

if download_link is None:
return

return RedirectResponse(download_link, status_code=302)
return RedirectResponse("https://stremio.fast", status_code=302)


@streams.get("/{b64config}/playback/{hash}/{index}")
Expand Down

0 comments on commit 683a826

Please sign in to comment.