sussy-code / smov

Sudo-flix's source code (Allegedly)
https://docs.undi.rest
MIT License
799 stars 780 forks source link

[Feature]: TMDB proxying #92

Open asakura42 opened 2 months ago

asakura42 commented 2 months ago

What feature do you want to add?

It's not the sudo-flix issue, but maybe you can do anything.

It seems TMDB blocks some countries/zones/dunno with some DNS-based thing. So if my friend from that country uses Cloudflare DNS server or provider's default DNS server TMDB block these requests. But if he uses Quad9 DNS all works fine.

Can you add some workaround for TMDB proxying through, for example, worker? Or anything else.

Why do you want to have this feature?

To make sudo-flix work in all countries.

Any other details to share?

No response

ztpn commented 2 months ago

we already fallback to tmdb.org when themoviedb.org is blocked if that's blocked as well you can setup a tmdb proxy and just change the base here https://github.com/sussy-code/smov/blob/main/src/backend/metadata/tmdb.ts#L147 so it will fallback to using the proxy if themoviedb.org is blocked

asakura42 commented 2 months ago

I propose to create some textbox in settings to paste this mirror. Because hosting own instance became painful.

ztpn commented 2 months ago

Sounds good