-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(debrid): add support for stremthru #166
base: main
Are you sure you want to change the base?
Conversation
comet/debrid/stremthru.py
Outdated
self.name = f"StremThru[{store}]" | ||
|
||
def should_try_to_proxy_stream(self): | ||
return not self.__is_proxy_authorized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When using StremThru as debrid service, it will do the proxy streaming. Comet just needs to redirect to the generated link.
== config["debridStreamProxyPassword"] | ||
): | ||
if not should_try_to_proxy_stream: | ||
return RedirectResponse(download_link, status_code=302) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StremThru will generate a link to itself, that can proxy stream to debrid direct links. So Comet just needs to redirect to that link.
26882b9
to
43aca93
Compare
9940c54
to
cec0a3e
Compare
e66bcaa
to
f84d82a
Compare
f84d82a
to
d1dfdf2
Compare
596588f
to
1aba308
Compare
Why?
To enable StremThru, you need to:
STREMTHRU_DEFAULT_URL
environment variable/configure
pageStremThru enabled with another Debrid Service
If that debrid service is supported by StremThru, Comet will call StremThru to interact with that debrid service.
StremThru enabled and set as Debrid Service
Comet will not know which "actual" debrid service user is using, it'll just call StremThru as if it's the debrid service itself.