pierre-emmanuelJ / iptv-proxy

Reverse proxy on iptv m3u and m3u8 file and xtream codes client api
GNU General Public License v3.0
535 stars 153 forks source link

No auth option possible? #11

Closed milesbarry closed 5 years ago

milesbarry commented 5 years ago

Hi, firstly many thanks for creating this software. I had it up and running in minutes. I have a couple of issues though.

VLC nor my AppleTV 4K IPTV player doesn't seem to like the username and password being on the end of the .ts ... I only see URL's in VLC, and can't see the actual channel name.

Would you be able to enable auth only on accessing the iptv.m3u file and not the actual streams? And / or optionally disable auth entirely , as I have a static IP at home and can put an iptables rule on the DigitalOcean server I'm using as the proxy.

Very best wishes

pierre-emmanuelJ commented 5 years ago

Thank you for your issue :) weird normally don't make problems in VLC, I'm using it to. I can add an option with no auth ASAP this week, good idea.

Thanks 🚀

milesbarry commented 5 years ago

Thank you for your issue :) weird normally don't make problems in VLC, I'm using it to. I can add an option with no auth ASAP this week, good idea.

Thanks 🚀

That's great ! It's strange because using the proxied M3U file on VLC I see the title being the URL ... I compared both M3U files (original and proxied) and only could notice the difference being that the proxied URL has the two parameters added for username and password.

Do you have any ideas please as to why this might be happening?

FYI providers URL looks like:

http://xxxx.xx:80/get.php?username=smart123&password=p455&type=m3u&output=ts

Best wishes

pierre-emmanuelJ commented 5 years ago

Oh so your provider is an xtream api provider so you should use the xtream proxy of iptv-proxy: https://github.com/pierre-emmanuelJ/iptv-proxy#xtream-code-server-api-example set up with your credential: base url: http://xxxx.xx:80 username: smart123 password: p455

And then install this app on your apple TV: https://apps.apple.com/fr/app/iptv-smarters-player/id1383614816 login with xtream code api and use the xtream proxified credentials

ps: and in case continue to use also --m3u-url because it's mandatory for the moment.

better with docker: https://github.com/pierre-emmanuelJ/iptv-proxy#with-docker 😄

milesbarry commented 5 years ago

Opps

[GIN-debug] Listening and serving HTTP on :8080 fatal error: runtime: out of memory

then large dump

FYI using your .deb package

pierre-emmanuelJ commented 5 years ago

Can you provide the dump? it's after using xtream service? I have just released if you want to test with the new deb

milesbarry commented 5 years ago

Just tried your new package - sadly still fails. Not sure if it's safe posting dump here? I don't see any URL's etc in it. If not safe how can I send it to you please? And yes this crash only happens when using xtream

FYI there's 18701 channels / URL's from my provider

pierre-emmanuelJ commented 5 years ago

Send me by email if you want ;) after it's only a dump from Golang runtime so normally it's safe look in commits for my email

ps: me It's work for 14 976 channels

normally xtream proxy don't take any memory, m3u-url take a lot due to 18701 channels endpoint creation with Gin.

So I'll will put m3u-url optional and then you will put only xtream service and remove m3u-url.

then you will can use xtream proxy api for using apps or using link "http://proxyexample.com/get.php..."

I'll change that asap

milesbarry commented 5 years ago

Hey, sent you the dump... cheers

pierre-emmanuelJ commented 5 years ago

hey I make a new release with --m3u-url optional. So use only xtrem proxy service to try thanks.

and also you will can be able to access your playlist with the xtream link. Example: http://proxy.com:80/get.php?username=test123&password=testproxy&type=m3u&output=ts or use xtream proxyfied credentials in app

pierre-emmanuelJ commented 5 years ago

okay thanks for the email ! I found the problem it's come from the get.php cache playlist!

okay for the moment use xtream proxyfied credentials as I said in the apple app https://apps.apple.com/fr/app/iptv-smarters-player/id1383614816

and dont use proxyfied get.php url because will be crash again.

So --m3u-url don't crash.

I'll fixe the m3u cache asap (I did that because sometime request take 40seconds if you have a lot of channels)

thanks for reporting

ps: the dump is not confidential 😉 not depends on you

milesbarry commented 5 years ago

Morning. So I tried the xtreme method... It takes nearly a minute from doing the http request until getting the m3u file. VLC shows the channels correctly. However when I click on any channel they all 404.

pierre-emmanuelJ commented 5 years ago

first request It's long after it's cached and request take less than 1 second for the 404 can you send me the logs

pierre-emmanuelJ commented 5 years ago

I close the issue because this is not the issue problem question