Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue preventing the m3u and epg file creation #11

Open
fennemaj opened this issue Feb 3, 2021 · 6 comments
Open

Issue preventing the m3u and epg file creation #11

fennemaj opened this issue Feb 3, 2021 · 6 comments

Comments

@fennemaj
Copy link

fennemaj commented Feb 3, 2021

There seems to be an issue that I'm encountering which is preventing the creation of the m3u and epg files. Below is the information in the docker logs. The Playlist and EPG links both generate 404 errors because the files are not being created as a result of the error.

INFO] Grabbing EPG...
http://api.pluto.tv/v2/channels?start=2021-02-02%2020%3A00%3A00.000%2B0000&stop=2021-02-03%2002%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-02-03%2002%3A00%3A00.000%2B0000&stop=2021-02-03%2008%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-02-03%2008%3A00%3A00.000%2B0000&stop=2021-02-03%2014%3A00%3A00.000%2B0000
http://api.pluto.tv/v2/channels?start=2021-02-03%2014%3A00%3A00.000%2B0000&stop=2021-02-03%2020%3A00%3A00.000%2B0000
undefined:1
undefined
^

SyntaxError: Unexpected token u in JSON at position 0
at JSON.parse ()
at Request._callback (/usr/src/app/index.js:70:24)
at self.callback (/usr/src/app/node_modules/request/request.js:185:22)
at Request.emit (events.js:210:5)
at Request.onRequestError (/usr/src/app/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:210:5)
at Socket.socketErrorListener (_http_client.js:407:9)
at Socket.emit (events.js:210:5)
at emitErrorNT (internal/streams/destroy.js:84:8)
at processTicksAndRejections (internal/process/task_queues.js:80:21)

mv: can't rename '*playlist.m3u': No such file or directory
mv: can't rename '*epg.xml': No such file or directory
Last ran: Tue Feb 2 20:49:20 UTC 2021

@bearxor
Copy link

bearxor commented Apr 11, 2021

Had the same issue. Did a little digging and logged in to the console and ran
cd /usr/share/nginx/html

npx pluto-iptv

This created a playlist.m3u8 and epg.xml in the directory that I could point channels at (had to modify the extension to m3u8). I was a little curious and stopped the container and restarted it. Once restarted everything appeared to work fine. It even created the playlist.m3u in the html directory.

Maybe it just doesn't work on first boot?

@maddox
Copy link
Owner

maddox commented Apr 12, 2021

The project writes a playlist.m3u file and moves it. If your version is actually creating an m3u8 file on disk, then your docker image may be out of date. Be sure you're on the latest.

@maddox maddox closed this as completed Apr 12, 2021
@bearxor
Copy link

bearxor commented Apr 12, 2021

no - the issue was that it wasn't writing anything. I've pulled this a few times over the last couple of weeks and it never works, i get the same error message as @fennemaj. It never worked.

Finally i got curious and looked up the original PlutoXML project and saw I could run the npx command. I ran it and that generated the m3u8 file.

When I rebooted the container, then everything actually worked and I got the m3u file and it moved it in the right location.

It doesn't matter how many times I pull a copy of your container - it always errors out. I just set up a new container and heres what i get

Screen Shot 2021-04-12 at 3 09 12 PM

@maddox
Copy link
Owner

maddox commented Apr 12, 2021

Hmm, it's not writing anything because it's throwing an error. So there's something else going on. Having just run it, it didn't error for me though.

@maddox maddox reopened this Apr 12, 2021
@bearxor
Copy link

bearxor commented Apr 13, 2021

I've played with this a little bit more - if i deploy the container in bridge mode, it works perfectly fine. If I assign it a network adapter and give it an ip address on my network, it errors out.

@fennemaj are you also trying to assign the container an ip?

@cory9214
Copy link

Having the same issue. Any new guidance here?

Screen Shot 2021-09-11 at 00 13 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants