Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

MunifTanjim
Copy link
Contributor

@MunifTanjim MunifTanjim commented Oct 30, 2024

Why?

  • With StremThru, user can change debrid providers without re-configuring the Stremio addon.
  • Just another debrid provider, that you basically self-host. Give people options.
  • If addons use StremThru, user can configure vpn/proxy for StremThru only, instead of configuring it for each addons individually.

image

image

To enable StremThru, you need to:

  • Add STREMTHRU_DEFAULT_URL environment variable
  • Or add "StremThru URL" config in /configure page

StremThru 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.

self.name = f"StremThru[{store}]"

def should_try_to_proxy_stream(self):
return not self.__is_proxy_authorized
Copy link
Contributor Author

@MunifTanjim MunifTanjim Oct 30, 2024

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)
Copy link
Contributor Author

@MunifTanjim MunifTanjim Oct 30, 2024

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.

@MunifTanjim MunifTanjim force-pushed the feat-stremthru branch 6 times, most recently from 26882b9 to 43aca93 Compare October 30, 2024 14:53
@MunifTanjim MunifTanjim marked this pull request as ready for review October 30, 2024 15:25
@MunifTanjim MunifTanjim force-pushed the feat-stremthru branch 6 times, most recently from 9940c54 to cec0a3e Compare November 4, 2024 13:32
@MunifTanjim MunifTanjim force-pushed the feat-stremthru branch 5 times, most recently from e66bcaa to f84d82a Compare November 22, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant