Pluto for Channels

Great work! Do you have this in copyable text format?
thanks
peter

I'm seeing this in the logs. What does this mean?

|2024-02-14 12:45:45|stdout|[INFO] Grabbing EPG...|
|2024-02-14 10:03:32|stdout| - - [14/Feb/2024:10:03:32 +0000] GET /epg.xml HTTP/1.1 200 11949075 - Mozilla/5.0 ChannelsDVR+XMLTV/1.0 -|
|2024-02-14 09:45:44|stdout|Last ran: Wed Feb 14 09:45:44 UTC 2024|
|2024-02-14 09:45:44|stdout|mv: can't rename '*epg.xml': No such file or directory|
|2024-02-14 09:45:44|stdout|mv: can't rename '*playlist.m3u': No such file or directory|

It means it didn't fetch any guide data from Pluto during that run.
You pasted the logs upside down (reverse chronologoical order). Look at the timestamps.
That's probably from an html dump of the logs in Synology Docker Station.
To see the error that caused it, you have to see what was logged before those two lines.

errors will appear here
|2024-02-14 09:45:44|stdout|mv: can't rename '*playlist.m3u': No such file or directory|
|2024-02-14 09:45:44|stdout|mv: can't rename '*epg.xml': No such file or directory|
|2024-02-14 09:45:44|stdout|Last ran: Wed Feb 14 09:45:44 UTC 2024|
|2024-02-14 10:03:32|stdout| - - [14/Feb/2024:10:03:32 +0000] GET /epg.xml HTTP/1.1 200 11949075 - Mozilla/5.0 ChannelsDVR+XMLTV/1.0 -|
|2024-02-14 12:45:45|stdout|[INFO] Grabbing EPG...|

A good fetch starts like this

2024-02-15T00:00:03.093774660Z [INFO] Grabbing EPG...
2024-02-15T00:00:03.117201760Z https://api.pluto.tv/v2/channels?start=2024-02-14%2016%3A00%3A00.000-0800&stop=2024-02-14%2022%3A00%3A00.000-0800
2024-02-15T00:00:03.140956768Z https://api.pluto.tv/v2/channels?start=2024-02-14%2022%3A00%3A00.000-0800&stop=2024-02-15%2004%3A00%3A00.000-0800
2024-02-15T00:00:03.143840046Z https://api.pluto.tv/v2/channels?start=2024-02-15%2004%3A00%3A00.000-0800&stop=2024-02-15%2010%3A00%3A00.000-0800
2024-02-15T00:00:03.145837091Z https://api.pluto.tv/v2/channels?start=2024-02-15%2010%3A00%3A00.000-0800&stop=2024-02-15%2016%3A00%3A00.000-0800
2024-02-15T00:00:09.775053797Z [DEBUG] Using api.pluto.tv, writing cache.json.

and ends like this

2024-02-15T00:00:38.465110026Z [SUCCESS] Wrote the EPG to epg.xml!
2024-02-15T00:00:38.489745331Z [SUCCESS] Wrote the M3U8 tuner to playlist.m3u!
2024-02-15T00:00:39.227440884Z Last ran: Wed Feb 14 16:00:39 PST 2024

If you use Portainer you can download the last 4 hours of the log to a file.

Or by using this docker command (and optionally redirect output to a file)
docker logs -t --since=4h pluto-for-channels 2>&1

I found one issue, which was that my Synology firewall was causing problems with Docker containers. I got that resolved, and now it looks like guide data is being downloaded, but for whatever reason I'm still not seeing any of that data in my guide. Here is the latest snippet from my logs, showing a successfull write to epg.xml:

2024-02-15 00:47:02 stdout Last ran: Thu Feb 15 00:47:02 UTC 2024
2024-02-15 00:47:02 stdout
2024-02-15 00:47:01 stdout [SUCCESS] Wrote the M3U8 tuner to playlist.m3u!
2024-02-15 00:47:01 stdout [SUCCESS] Wrote the EPG to epg.xml!
2024-02-15 00:47:00 stdout [INFO] Adding instance of CBS News Texas 6pm
2024-02-15 00:47:00 stdout [INFO] Adding instance of CBS News Texas 5pm
2024-02-15 00:47:00 stdout [INFO] Adding instance of CBS News Texas 5pm
2024-02-15 00:47:00 stdout [INFO] Adding instance of CBS News Texas 4pm
2024-02-15 00:47:00 stdout [INFO] Adding instance of Latest Texas News & Headlines
2024-02-15 00:47:00 stdout [INFO] Adding instance of Latest Texas News & Headlines

My guide still looks like this though:

Delete and Recreate the guide database in Channels DVR

Or Reload M3U and then Redownload XMLTV on the Pluto source
Screenshot 2024-02-14 at 20-26-13 Channels Settings

I woke up this morning and my guide data was back. Apparently it just took a long time to sync up after I updated my firewall rules. That seems to have been the root cause of multiple Docker issues I was having.

Channels DVR will perform both the Reload M3U and Redownload XMLTV periodically as you defined in the settings. Daily updates happen sometime between 9-11am.

I have been unable to tune the Pluto CNN Headlines channel for some time now. I'm using @maddox's pluto-for-channels docker container. Most or all of my other Pluto channels work. And I am able to tune this channel directly on the Pluto website. Error from log below. Any ideas?

2024/02/21 17:40:40.444343 [ERR] Could not start stream for M3U-PlutoTV ch9563 CNN HEADLINES: M3U: Could not fetch playlist from cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv: GET: https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/5421f71da6af422839419cb3/master.m3u8?advertisingId=&appName=web&appStoreUrl=&appVersion=unknown&architecture=&buildVersion=&clientTime=0&deviceDNT=0&deviceId=3d45a5dd-d10a-11ee-ae63-0011329a6dcf&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&serverSideAds=true&sid=56ac3835-5910-4b61-9802-4a9c54357907&userId=: 401 Unauthorized

Switch to the @joagomez version as noted above. I'm not having any issue with that station on there:

1 Like

Thanks @babsonnexus! I will check it out now.

Thanks, but I could not get it to work in my Synology docker.

Is your Synology a linux/arm platform?

@joagomez Yes. I have the docker container running, but none of the URLs from this screen shot will resolve. Using my correct IP and port number, of course.

Do we know if @maddox is still maintaining his pluto-for-channels docker image? It looks like it hasn't been updated since November 2022.

Just to check for silly things, the port isn't in use my something else or has to be open to the network or anything? What happens when you just go to the default location (http://[IP_ADDRESS]:[PORT]) without trying the URLs?

@babsonnexus Fair question. I shut down the maddox container and then used the same port it was using, which was 1080.

When maddox is running, I get this:
image

But when maddox is shut down and joagomez is running it does not resolve:

I will add that the logs look weird to me. It looks like it is trying to run on port 7777 even though I specified 1080:
image

This was my docker run command to create the container:

You should have -p 1080:7777

2 Likes

Ah-ha! That was it! Thank you! It is up and running now, and all of the channels seem to be working.

I'm seeing a slightly different list of Pluto channels between the Pluto Docker and the published URLs https://i.mjh.nz/PlutoTV/us.m3u8
https://i.mjh.nz/PlutoTV/us.xml

For example, I don't see the following channels in the Docker. Any idea why the difference?
Oxygen True Crime Archives
Ink Master
Jeopardy! hosted by Alex Trebek
Wheel of Fortune
Hot Bench
PBR RidePass