xteve-project / xTeVe

M3U Proxy for Plex DVR and Emby Live TV
MIT License
1.84k stars 238 forks source link

error 404 not found when adding playlist #311

Open merrychrishna opened 2 years ago

merrychrishna commented 2 years ago

Please first read the documentation. Problems affecting the client, e.g. Plex or Emby should be reported there in the forum.

Describe the bug A clear and concise description of what the bug is.

when adding the playlist m3u url in xteve i get error 404 not found and the playlist doesnt download. i am able to download the playlist on tivimate so i tried putting tivimates user-agent in xteve encase my provider is blocking xteve but that didnt fix the problem. so how can my provider still be blocking xteve? or what could be another reason why it doesnt work?

Server (please complete the following information):

To Reproduce Steps to reproduce the behavior: add the m3u url and click save

Expected behavior A clear and concise description of what you expected to happen.

the playlist should download and get added to xteve

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

my provider might be blocking xteve somehow

tunes0710 commented 2 years ago

Are you using the format http<s>://<domain>:<port>/get.php?username=<username>&password=<password>&type=m3u_plus&output=mpegts

merrychrishna commented 2 years ago

i tried

http<s>://<domain>:<port>/get.php?username=<username>&password=<password>&type=m3u_plus&output=mpegts

and

http<s>://<domain>:<port>/get.php?username=<username>&password=<password>&type=m3u_plus&output=ts

tunes0710 commented 2 years ago

Can you download it you your machine? curl -o <filename> <url> If it downloads to your computer and you can open it in a text editor ok, there's no reasons why it shouldn't be opening in xteve. But it's worth checking the file it downloads, incase it's HTML code for a redirect or anything like that

merrychrishna commented 2 years ago

curl -o didnt work. it says invalid url.

i also cant ping the host ping http://reign.loginto.me:826 Ping request could not find host http://reign.loginto.me:826. Please check the name and try again.

but the url works in tivimate

i dont know what to input in curl. it looks like -o is just to output to a file. maybe i need to use --user to put in the password? but still dont know what the whole url should look like if i do that

tunes0710 commented 2 years ago

That isn't how ping works. You'd need to ping reign.loginto.me not http etc... if you did a curl -o filename.txt and had the full URL with ?username= etc etc in it.. then it should be fine it's saying that it's a dynamic url for primestreams.tv so try replacing reign.loginto.me with primestreams.tv and see if that works... i.e. curl -o iptv.txt http://primestreams.tv:826/get.php?username=<username>&password=<password>&type=m3u_plus&output=mpegts and replace it with your username and password and see if it downloads the information to a text file on your pc called iptv.txt

merrychrishna commented 2 years ago

it still says error 404

>curl -o iptv.txt http://primestreams.tv:826/get.php?username=XXXX&password=XXXX&type=m3u_plus&output=mpegts

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   146  100   146    0     0   1707      0 --:--:-- --:--:-- --:--:--  1717
'password' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the file specified.
'output' is not recognized as an internal or external command,
operable program or batch file.```

iptv.txt
404 Not Found

404 Not Found


nginx
```
tunes0710 commented 2 years ago

aah sorry.... enclosed the whole url in quotes curl -o iptv.txt "http://primestreams.tv:826/get.php?username=XXXX&password=XXXX&type=m3u_plus&output=mpegts"

merrychrishna commented 2 years ago

ok just tried it and its the same error 404

tunes0710 commented 2 years ago

It must be some security that they use... as that is exactly what I use on my provider and it works fine... if you change get to xmltv and remove the &type= onwards.... then it will download the EPG from there ok. Either they've changed it from get.php to something else... or they have implemented additional security to stop M3U's from being used outside approved clients...

I tested it specifying a user-agent as well, but still didn't work. Sorry, am all out of ideas!

merrychrishna commented 2 years ago

@tunes0710 would you happen to know how to solve this error from a different provider? 2022-05-08 22:03:30 [xTeVe] [ERROR] Invalid M3U file, an extended M3U file is required. () - EC: 0