Skip to content

Commit

Permalink
fix: realdebrid ip stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
g0ldyy authored Oct 3, 2024
1 parent 1176b2a commit 6ee6b92
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion comet/api/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,13 @@ async def playback(request: Request, b64config: str, hash: str, index: str):
f"DELETE FROM download_links WHERE debrid_key = '{config['debridApiKey']}' AND hash = '{hash}' AND file_index = '{index}'"
)

ip = get_client_ip(request)
ip = ""
if (
not settings.PROXY_DEBRID_STREAM
or settings.PROXY_DEBRID_STREAM_PASSWORD != config["debridStreamProxyPassword"]
):
ip = get_client_ip(request)

if not download_link:
debrid = getDebrid(session, config, ip)
download_link = await debrid.generate_download_link(hash, index)
Expand Down

0 comments on commit 6ee6b92

Please sign in to comment.