Non-Docker source for PlutoTV m3u playlists and EPG

@HankLloydRight, first off, I'd like to echo everyone's thanks for this project...its awesome!!!..

Have a couple questions of some weirdness I'm trying to work through:

  1. I'm using your Pluto and Stirr m3u playlists and in a thread you informed you added functionality that permitted specifying the start number of the channels. This appears to have stopped working - https://nocords.xyz/stirr/custom.php?start=9910 (my start range)

  2. In addition to Pluto and Stirr as sources, I also have Plex and Spectrum. I'm having difficulty getting the Stack Duplicates function to work - General > Stack Duplicates. Would that have anything to do with your playlists or would that be a general Channels issue ??.

Thanks again for all your effort!!

1 Like

Thanks for the feedback.

For your first question, it appears there was some test code adding 20 to the custom number provided. It should now start at the number you specify. I'm not sure why that was in there.

Second, the non-Docker source returns the same XML/EPG as the Docker code, so if one doesn't stack, I'd bet neither does the other(s). So I couldn't begin to tell you what's not working. Sorry.

-Hank

1 Like

No worries...Thank you for your feedback!!!!

2 Likes

Thank you so much for this non-docker option. I have a quick question. Anyone noticing any issues with no guide data on Pluto. The channels play but I don't have any guide data and am not sure why..

I'm seeing guide data but it stops at 6am PT tomorrow. I've refreshed the guide data but that did not help.

2 Likes

I believe there are only 12 hours of guide data available at any given time. Which is also a reason why you should have guide data set to refresh often, like every 3 hours (the data on the backend only updates every 3 hours).

1 Like

I think something's broken with the STIRR EPG. At least it's not working over here and I haven't changed anything that would affect this. Anyone else?

Interesting. I'm seeing it empty too. Even though pulling up the URL in a browser is showing data. I am thinking it is out of date which means that url is no longer updating.

1 Like

Could be a sign at https://nocords.xyz/ ?
LOCAL STIRR MODULE TEMPORARILY UNAVAILABLE

3 Likes

Yes, this happened a few months ago. The raw data from the Stirr server has some formatting error that the Stirr GO program can’t parse. Last time it took 3 or 4 days to wait for Stirr to fix the problem.
I don’t know GO so I’m unable to debug and fix the code to handle the parsing error.

I took a quick look and made some fixes here: https://github.com/robbiet480/stirr-for-channels/pull/3

5 Likes

Wow, thank you!! I'll put these changes in tomorrow.

2 Likes

I put your changes in, and it's working again. You're best, thank you @tmm1!

The Stirr links on nocords.xyz are now back up, and hopefully much more resilient to upstream errors.

In case anyone wants to dig or debug further, here's the stations/data that it was erroring out on:

Ignoring program error on gravitas-wurl-external-12-03-2018 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/gravitas-wurl-external-12-03-2018?station=national
2022/07/11 09:30:29
Ignoring program error on externallinearfeed-02-09-2022-02-09-2022 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/externallinearfeed-02-09-2022-02-09-2022?station=national
2022/07/11 09:30:29
Ignoring error on externallinearfeed-07-18-2019-07-18-2019 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/status/externallinearfeed-07-18-2019-07-18-2019?station=national
2022/07/11 09:30:29
Ignoring error on externallinearfeed-05-25-2020-174756630-05-25-2020 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/status/externallinearfeed-05-25-2020-174756630-05-25-2020?station=national
2022/07/11 09:30:29
Ignoring error on externallinearfeed-09-28-2021-09-28-2021 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/status/externallinearfeed-09-28-2021-09-28-2021?station=national
2022/07/11 09:30:30
Ignoring program error on stirr-reality-tv : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/stirr-reality-tv?station=national
2022/07/11 09:30:30
Ignoring error on horse-shopping-channel-01-05-2021-232155211 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/status/horse-shopping-channel-01-05-2021-232155211?station=national
2022/07/11 09:30:31
Ignoring program error on externallinearfeed-09-12-2019-09-12-2019 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/externallinearfeed-09-12-2019-09-12-2019?station=national
2022/07/11 09:30:31
Ignoring program error on externallinearfeed-07-30-2020-07-30-2020 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/externallinearfeed-07-30-2020-07-30-2020?station=national
2022/07/11 09:30:32
Ignoring program error on externallinearfeed-12-04-2019-195208364-12-04-2019 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/externallinearfeed-12-04-2019-195208364-12-04-2019?station=national
2022/07/11 09:30:32
Ignoring program error on externallinearfeed-05-30-2019-05-30-2019 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/program/stirr/ott/externallinearfeed-05-30-2019-05-30-2019?station=national
2022/07/11 09:30:32
Ignoring error on externallinearfeed-06-24-2021-06-24-2021 : unexpected response 404 Not Found from https://ott-gateway-stirr.sinclairstoryline.com/api/rest/v3/status/externallinearfeed-06-24-2021-06-24-2021?station=national
2022/07/11 09:30:33
Cache fill complete, loaded 110 channels with 2292 programs in guide
2022/07/11 09:30:33

Update. I just checked all those URLs and they work fine (not 404).

I re-ran the Stirr GO program and this time it returned no errors.

So whatever is happening on the Stirr end appears to be intermittent with these URLs.

Whatever it is, Stirr is now up again.

4 Likes

Thank you for your help with this. I've got guide data on both Pluto and Stirr. Love this solution much better than the Docker version that would quit intermittently on me on my Windows computer and also much less strenous on the CPU.

3 Likes

just found this. awesome.

feature request: enable "prefix" and "padding" parameters to adjust the channel numbers dynamically while still referencing the original channel-number.

PoC:
This is just a wrapper around your m3u (cached locally for 30 min as well):
https://jeremy.kister.net/cgi-bin/channelsdvr-plutotv.mpl

the default is ?prefix=8&padding=4

this makes all pluto channels 5 digits in length and all start with an 8:

  • 0 -> 80000
  • 12 -> 80012
  • 123 -> 80123
  • 1234 -> 81234
2 Likes

Thanks
It’s already set up for that.

I believe this should work (I’m on my phone right now):

https://nocords.xyz/pluto/custom.php?start=80000

edit: Yup, that works.

1 Like

well, that behavior is a bit different - it starts numbering at N and increments 1 for each channel.

this one keeps the original channel convention but just pads it. I like this because it matches with the native channels and the pluto.tv website. so the ST:TNG channel on their site is 270, and with this it's changed to 80270

so the last channel # in mine is 83415 (my prefix + match pluto's 3415), the last channel in yours is 80337 (because 337 available channels).

2 Likes

That does sound nice. The mismatch otherwise can be confusing.

1 Like

Ok, I've changed the code to re-use the original channel number.

The link and parameters remain the same:

https://nocords.xyz/pluto/custom.php?start=80000

2 Likes