g0ldyy / comet

Stremio's fastest torrent/debrid search add-on.
MIT License
234 stars 42 forks source link

Support for external service that does proxy #161

Closed MunifTanjim closed 3 weeks ago

MunifTanjim commented 3 weeks ago

Right now Comet does the proxying with byte-serving itself.

I want to be able to instead use an external service that does it. That way multiple addon can use that same external service for proxying.

I'm working on such a service: https://github.com/MunifTanjim/stremthru

It will support:

The idea is to not have every addon implement these functionalities, rather they can use it instead.

If we have a PROXY_URL_TEMPLATE config, I can use it like this:

PROXY_URL_TEMPLATE="http://stremthru:8080/proxy?url={URL}"

So the implementation would not be tied to a single project, since the template can be changed.