Plex Live TV Channels M3U?

I used https://github.com and also added my username and pswd to both entries. This is what I get with https://github.com

Model: DS412+
DSN Ver. DSM 6.2.4-25556 Update 8

That is the current version

Not for $149 :astonished:

The CE version (Community Edition) is fully functional. And free.

1 Like

Ahh, I'm running
DSM 7.2.2-72806 Update 4
Container Manager 24.0.2-1543

Your 13 year old NAS is too old to run DSM v7.

1 Like

I had Perplexity give me step by step directions on how to pull plex-for-channels from GitHub using TELNET. It worked. Now to get it operational. :slightly_smiling_face:

I thought about getting a new one, but this one does everything I need. :grinning:

Is anyone else getting this error in their container log (besides babsonnexus), or are we the only ones?

I do a blend of container manager and command line via SSH.
I was at one point thinking about getting a DS224 plus and building up a system with solid state drives. I was even thinking about getting onfe of those mini pcs and running Linux on the system.
My Synology so far is doing what i need.

Mine has merged data from today through the 31st (note the size of epg.xml in the screenshot above), but it is not consistent among the stations. For instance, "The Adams Family" has regular episode details and there is no problem in Channels.

<programme start="20251026224022 +0000" stop="20251026231024 +0000" channel="68fa84637ac952737656ae5f-689fb7110a486aeba3c7917c"><title>The Addams Family</title><sub-title>Lurch's Grand Romance</sub-title><desc>Lurch suffers from unrequited love over Tiny Trivia (guest star Diane Jergens), Morticia's visiting school chum who only has eyes for show business.  The entire family decides to try to turn their stolid butler in to a new personality.</desc><category>Classic tv</category><icon src="https://image.tmdb.org/t/p/original/6wG7N6MHGWChigT431DaDEKbxLc.jpg" /><date>19660401</date><episode-num system="onscreen">S2E229</episode-num><episode-num system="xmltv_ns">1.228.</episode-num><rating><value>TV-G</value></rating></programme>
<programme start="20251026231024 +0000" stop="20251026234027 +0000" channel="68fa84637ac952737656ae5f-689fb7110a486aeba3c7917c"><title>The Addams Family</title><sub-title>Ophelia's Career</sub-title><desc>When Ophelia laments that she has been jilted, Morticia suggests a career as an alternative to marriage. She tries chemistry first (with explosive results) then turns to operatic singing.  Cousin Itt is summoned to coach her to stardom.</desc><category>Classic tv</category><icon src="https://image.tmdb.org/t/p/original/6wG7N6MHGWChigT431DaDEKbxLc.jpg" /><date>19660408</date><episode-num system="onscreen">S2E230</episode-num><episode-num system="xmltv_ns">1.229.</episode-num><rating><value>TV-G</value></rating></programme>
<programme start="20251026234027 +0000" stop="20251027001030 +0000" channel="68fa84637ac952737656ae5f-689fb7110a486aeba3c7917c"><title>The Addams Family</title><sub-title>The Addams Family Goes To School</sub-title><desc>Morticia and Gomez decide to keep Wednesday and Pugsley home from school after Morticia sees the fairy tales they have to read.  When the truant officer comes to investigate, he is shocked at what he finds.</desc><category>Classic tv</category><icon src="https://image.tmdb.org/t/p/original/6wG7N6MHGWChigT431DaDEKbxLc.jpg" /><date>19640918</date><episode-num system="onscreen">S1E101</episode-num><episode-num system="xmltv_ns">0.100.</episode-num><rating><value>TV-G</value></rating></programme>

However, "24 Hour Free Movies" has generic placeholders:

<programme start="20251026211755 +0000" stop="20251026221755 +0000" channel="68fa84637ac952737656ae5f-5fd115bab7ef8d002dcf181d"><title>24 Hour Free Movies (2021)</title><desc>24 Hour Free Movies brings you a growing collection of popular movies and TV shows from around the world. Always Free &amp; Always Fun</desc><category>Movies</category><date>20210216</date><rating><value>NR</value></rating></programme>
<programme start="20251026221755 +0000" stop="20251026231755 +0000" channel="68fa84637ac952737656ae5f-5fd115bab7ef8d002dcf181d"><title>24 Hour Free Movies (2021)</title><desc>24 Hour Free Movies brings you a growing collection of popular movies and TV shows from around the world. Always Free &amp; Always Fun</desc><category>Movies</category><date>20210216</date><rating><value>NR</value></rating></programme>
<programme start="20251026231755 +0000" stop="20251027001755 +0000" channel="68fa84637ac952737656ae5f-5fd115bab7ef8d002dcf181d"><title>24 Hour Free Movies (2021)</title><desc>24 Hour Free Movies brings you a growing collection of popular movies and TV shows from around the world. Always Free &amp; Always Fun</desc><category>Movies</category><date>20210216</date><rating><value>NR</value></rating></programme>

And here's the same station from Distro's XML Guide Data, so it's not a matter of it being discontinued:

  <programme start="20251026175934 +0000" stop="20251026204824 +0000" channel="24-hour-free-movies" clumpidx="0/1">
    <title>Dark Planet</title>
    <desc>Two sides, one known as the Alphas and the other the Rebels, struggle in a brutal war on Earth and in outer space. Starring Paul Mercurio and Michael York.</desc>
    <icon>https://d3kefxscf5gq6l.cloudfront.net/file/thumbnail/635e09d9-aaf7-49e0-91b1-f7954248aba9.jpg</icon>
  </programme>
  <programme start="20251026204824 +0000" stop="20251026233043 +0000" channel="24-hour-free-movies" clumpidx="0/1">
    <title>Death Of A Soldier</title>
    <desc>Based on a true story, James Coburn portrays a military lawyer assigned to defend a confessed psychotic killer. Set in WWII and the uneasy US-Australian military alliance. The accused killer claims to have killed 3 women in order to possess their voices.  Starring James Coburn, Bill Hunter and Reb Brown</desc>
    <icon>https://d3kefxscf5gq6l.cloudfront.net/file/thumbnail/671a01e3-91de-4784-ab10-194648f3514c.jpg</icon>
  </programme>

Still, here's where it gets crazy! So let's go back to the daily file that is getting updated. In that one, there is data for "24 Hour Free Movies":

<programme start="20251025235236 +0000" stop="20251026021703 +0000" channel="68fa84637ac952737656ae5f-5fd115bab7ef8d002dcf181d"><title>Cannibal (2025)</title><desc>Max is agoraphobic and lives in a cabin in the middle of nowhere. One night, he finds a beautiful unconscious woman (Bianca). Her body is covered with blood.</desc><category>Movies</category><date>20251025</date><rating><value>NR</value></rating></programme>
<programme start="20251026065616 +0000" stop="20251026084630 +0000" channel="68fa84637ac952737656ae5f-5fd115bab7ef8d002dcf181d"><title>Charlotte (2025)</title><desc>A teenage girl is baby sitting at a new house when she's accosted by a vicious, possessed doll. With the baby sitter in bondage, the toy subjects her to a series of terrifying tales on the television, each story more twisted than the last.</desc><category>Movies</category><date>20251026</date><rating><value>NR</value></rating></programme>
<programme start="20251026131122 +0000" stop="20251026153244 +0000" channel="68fa84637ac952737656ae5f-5fd115bab7ef8d002dcf181d"><title>Corrado (2025)</title><desc>A ruthless mafia hit man is transformed when he rescues a woman who takes the fall for one of his hits. Starring Tom Sizemore, Tony Curran, Johnny Messner</desc><category>Movies</category><date>20251026</date><rating><value>NR</value></rating></programme>

Yet, there are no entries for "The Adams Family". So what's going on here?

What I believe is happening is this: There is some type of character in the source fields that feed the XML guide data (specially when it is looping at "Shout! TV" or whatever the next item is) that is causing a break. That break is being read from the code as a "move to next" and then it is trying to insert the remainder of the read field data into that step, which is why it is responding with the exception. There doesn't appear to be a fallback to just skip when there is an error and try the next record, so the rest of the process falls out, hence why you are not getting an updated merged XML even though you got at least part of a daily file.

I think that this particular issue might clear up on its own when that item is in the past and it can no longer cause the hiccup. It would still be good to make adjustments to the base code so it can't happen again, but in the meantime we'll probably have to wait until tomorrow to know for sure.

I am!

[INFO - PLEX] Checking scheduler thread
[ERROR - PLEX] Exception in EPG Scheduler : not well-formed (invalid token): line 147154, column 746
[INFO - PLEX] EPG Scheduler Complete
[INFO - PLEX] Running EPG Scheduler for plex
[DEBUG - PLEX] Running EPG Call
[INFO - PLEX:channels] Using Cache for Channel Listing
[DEBUG - PLEX] Number of channels 648
[DEBUG - PLEX] EPG Pass 0

The exception is being caused by a backspace character (0x08) in the guide data.


This is viewing the file 2025-10-26_media.xml

Since that file will be deleted in about 3.5 hrs (when 2025-10-27 UTC rolls around), will see if I get guide data back after that.

1 Like

Gracenote corrected - Plex altered their id so needed to correct in the csv file. May need to update code later (not only for this but for the nonprintable character stuff noted above) but this will suffice for now.

4 Likes

Thanks for the fix.

1 Like

Back to normal now with guide data.
390 Gracenote channels
258 XMLTV channels

1 Like

I'm having issues getting the guide data for both Plex and Pluto. i'm about to make channels re-do my database.
Trying to make sure Playlist manager is pushing everyting i need.

With the FAST services adding and dropping channels all the time, I now set up each source start channel to be 10,000 channels away from the previous one. Before when using a separation of 1,000 I had channel numbers duplicated between sources.

After what happened with Plex, once it returned to normal, I did a delete and recreate guide database in Channels DVR.

That's an excellent idea. I had to do the same thing a couple weeks ago.

1 Like

It looks like Plex Gracenote playlist is back to zero channels again.

Confirmed: