marcelGoerentz / Threadfin

MIT License
3 stars 1 forks source link

Rewrite all urls in a playlist #23

Closed PilaScat closed 2 months ago

PilaScat commented 2 months ago

I again, I need to use threadfin via vpn on another server in another lan, when I connect with the vpn ip to my server I get the m3u and xmltv, but when I stream it tries to connect at the other threadfin as it is in the same lan, I need a way to rewrite the ips in the second lan to match the vpn ip of the first lan, I tried to modify the urls manually to test but threadfin overwrites Could you add a field to do this?

marcelGoerentz commented 2 months ago

You need to set the domain option I guess. That will overwrite the IPs within the m3u and xml file.

PilaScat commented 2 months ago

Yes it does, but only in egress, not in ingress

marcelGoerentz commented 2 months ago

Maybe you need a proxy?

marcelGoerentz commented 2 months ago

As far as I know there is a new option that I‘ve synced from the original project.

marcelGoerentz commented 2 months ago

Maybe that will help you

PilaScat commented 2 months ago

I tried to use it but it doesn't change, probably I don't know how to use it

marcelGoerentz commented 2 months ago

It should forward every stream to a specific endpoint. I‘ll have to check how it works, before I can say anything specific

marcelGoerentz commented 2 months ago

These are the comments to the code that has been checked into the original project: https://github.com/Threadfin/Threadfin/pull/325

So this is something with the buffer.

To be honest I don‘t think that Threadfin should touch the urls in the original playlist as this could lead to malformed URL’s. Even the force https option is a bad option in Threadfin and I just left it since it has been used eventually by few users. Therefore I will not implement this feature. Sorry for the inconvenience.