Plex Live TV Channels M3U?

Doing a complete rework of the code - please be patient

2 Likes

Let the fun begin....
Complete revamp of the code
Check plex-for-channels/README.md at main · jgomez177/plex-for-channels · GitHub

Big things to note is

  • New web interface
  • PLEX_PORT is changed to PORT (for future integration of other projects)
  • PLEX_CODE is gone - URL "regions" parameter now used for different geo locations
  • Regions can now be integrated into a single playlist - so regions=local,ca would provide a single playlist that integrates the two geo locations
  • One single EPG for all geolocations in use
  • Updated error handling and other internal modifications
2 Likes

plex-for-channels/README.md at main · jgomez177/plex-for-channels · GitHub is showing PLEX_PORT for the docker-cli

Running

The recommended way of running is to pull the image from GitHub.

docker run -d --restart unless-stopped --network=host -e PLEX_PORT=[your_port_number_here] --name  plex-for-channels ghcr.io/jgomez177/plex-for-channels
1 Like

How long should it take until it has todays EPG?
Looks like it fetched tomorrows twice, but not todays.
Ahh, maybe Collect data for 2025-02-15 means UTC time.

2025-02-15T03:46:28.989577124Z [INFO - PLEX] PLEX Generating Device ID
2025-02-15T03:46:29.016449993Z [INFO - MAIN] ? http server started on [::]:7777
2025-02-15T03:46:29.250641635Z [INFO - PLEX] Starting Scheduler thread for plex
2025-02-15T03:46:29.251126600Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-15T03:46:29.251551607Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-15T03:46:30.041109011Z [INFO - PLEX] Access Token located for local
2025-02-15T03:46:31.115618179Z [INFO - PLEX] Stories by AMC has DRM set. Skipping.
2025-02-15T03:46:43.437701064Z [INFO - PLEX] Updating TMSID for 407 items
2025-02-15T03:46:43.443098659Z [INFO - PLEX] Stations Identified for local: 616/616
2025-02-15T03:46:43.447053767Z [WARNING - PLEX] File 2025-02-14_media.xml does not exist
2025-02-15T03:46:43.447349688Z [WARNING - PLEX] File 2025-02-14_epg.xml does not exist
2025-02-15T03:46:43.447551878Z [NOTIFICATION - PLEX] Collect data for 2025-02-15
2025-02-15T03:46:43.447745963Z [NOTIFICATION - PLEX] Generating 2025-02-15_epg.xml
2025-02-15T03:47:30.664266965Z [NOTIFICATION - PLEX] Number of stations completed 100: Elapsed time: 47.22 seconds.
2025-02-15T03:49:05.076876415Z [NOTIFICATION - PLEX] Number of stations completed 200: Elapsed time: 141.63 seconds.
2025-02-15T03:49:45.363403023Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T03:49:45.371999458Z [INFO - PLEX] Full Playlist: 616
2025-02-15T03:49:45.372765558Z [INFO - PLEX] No Gracenote Playlist: 217
2025-02-15T03:49:47.946519429Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T03:49:47.955710972Z [INFO - PLEX] Full Playlist: 616
2025-02-15T03:49:47.956687916Z [INFO - PLEX] No Gracenote Playlist: 217
2025-02-15T03:50:15.028707816Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T03:50:15.037266913Z [INFO - PLEX] Full Playlist: 616
2025-02-15T03:50:15.038028472Z [INFO - PLEX] Gracenote Playlist: 399
2025-02-15T03:50:16.533025142Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T03:50:16.540880826Z [INFO - PLEX] Full Playlist: 616
2025-02-15T03:50:16.541755712Z [INFO - PLEX] Gracenote Playlist: 399
2025-02-15T03:51:56.898070891Z [NOTIFICATION - PLEX] Number of stations completed 300: Elapsed time: 313.45 seconds.
2025-02-15T03:56:04.982574008Z [NOTIFICATION - PLEX] Number of stations completed 400: Elapsed time: 561.53 seconds.
2025-02-15T04:00:49.431661388Z [NOTIFICATION - PLEX] Number of stations completed 500: Elapsed time: 845.98 seconds.
2025-02-15T04:01:29.586431524Z [INFO - PLEX] Checking scheduler thread
2025-02-15T04:06:06.291038762Z [NOTIFICATION - PLEX] Number of stations completed 600: Elapsed time: 1162.84 seconds.
2025-02-15T04:06:51.888671150Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 1208.44 seconds.
2025-02-15T04:07:22.703573884Z [INFO - PLEX] XML data successfully written to 'data/plex/2025-02-15_epg.xml'
2025-02-15T04:08:19.741588048Z [INFO - PLEX] XML data successfully written to 'data/plex/2025-02-15_media.xml'
2025-02-15T04:08:54.517175763Z [INFO - PLEX] XML data successfully written to 'data/plex/epg.xml'
2025-02-15T04:08:55.648616433Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-15T04:08:55.667180443Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-15T04:08:55.828029198Z [INFO - PLEX] EPG Scheduler Complete

Looks like 22.5 minutes

I'm looking forward to giving this a try. Thanks for your hard work!

@bnhf, will the Olivetin Project One-Click action be updated to run this new Plex for Channels version 4.0?

May be an issue for one click install if Channels can't access the lineup and EPG as soon as the docker container is created.

2025/02/14 19:50:08.828224 [ERR] Failed to download XMLTV-PlexNoEpg: xmltv fetch: GET: http://192.168.1.3:7781/plex/epg.xml: 404 NOT FOUND: "XML Being Generated Please Standby"

Correct times are UTC - your pull times seem high as mine do not take quite as long, usually under 60 seconds per 100 stations - but their API is very inefficient and seems to throttle as more calls are done. I wish I could find a group API instead of by channel but haven't located it yet.
This is only one that has to be done one-by-one unlike Tubi and Pluto which programming can be pulled in batches

2 Likes

Thanks for doing all the work on this update :+1:

Here's what I have so far
20 - 93 minutes

2025-02-15T04:06:51.888671150Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 1208.44 seconds.
2025-02-15T04:29:23.647962255Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 1227.80 seconds.
2025-02-15T05:09:57.863676837Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 2309.44 seconds.
2025-02-15T06:22:50.674658623Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 3477.63 seconds.
2025-02-15T07:57:14.703798563Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 4571.15 seconds.
2025-02-15T09:57:16.244369570Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 5595.88 seconds.
2025-02-15T11:00:08.692290021Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 1316.54 seconds.
2025-02-15T14:56:14.284668048Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 1264.24 seconds.

Yes, definitely. I've been working on it a bit this morning, but won't have a chance to publish until late today or tomorrow morning.

I had to stop the container.
Was using over 1GB Ram.



Much better now.

Similar issue for me. Memory usage grew by over 1GB -- so had to shut it down. Memory leak?

working on it found an issue

@chDVRuser and @bnhf

Can you try the following image?
ghcr.io/jgomez177/plex-for-channels:multi_thread_test

You may want to also add a volume parameter
--volume <your_path>:/app/data

So far, memory usage better. Although the plex and pluto containers use the most.

Have about 4 hours of guide data now.

2025-02-15T19:45:03.137998241Z [INFO - PLEX] PLEX Generating Device ID
2025-02-15T19:45:03.176721235Z [INFO - MAIN] ⇨ http server started on [::]:7777
2025-02-15T19:45:03.382223023Z [INFO - PLEX] Starting Scheduler thread for plex
2025-02-15T19:45:03.382747855Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-15T19:45:03.383104969Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-15T19:45:04.129385321Z [INFO - PLEX] Access Token located for local
2025-02-15T19:45:05.031634390Z [INFO - PLEX] Stories by AMC has DRM set. Skipping.
2025-02-15T19:45:20.077559728Z [INFO - PLEX] Updating TMSID for 407 items
2025-02-15T19:45:20.083216738Z [INFO - PLEX] Stations Identified for local: 616/616
2025-02-15T19:45:20.087362569Z [WARNING - PLEX] File 2025-02-14_media.xml does not exist
2025-02-15T19:45:20.087924569Z [WARNING - PLEX] File 2025-02-14_epg.xml does not exist
2025-02-15T19:45:20.088164833Z [NOTIFICATION - PLEX] Collect data for 2025-02-15
2025-02-15T19:45:20.088551379Z [NOTIFICATION - PLEX] Generating 2025-02-15_epg.xml
2025-02-15T19:46:44.470948559Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 84.38 seconds.
2025-02-15T19:47:01.974452896Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 17.50 seconds.
2025-02-15T19:47:02.077973728Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-15T19:47:02.078208970Z [DEBUG - PLEX] Number Programs identified: 18780
2025-02-15T19:47:02.078628665Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-15T19:47:42.131028730Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 40.16 seconds.
2025-02-15T19:48:12.204193620Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-15T19:48:12.223219834Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-15T19:48:12.372701972Z [INFO - PLEX] EPG Scheduler Complete
2025-02-15T19:55:04.334344893Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-15T19:55:04.335072692Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-15T19:55:04.335231928Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T19:55:04.338381625Z [WARNING - PLEX] File 2025-02-14_media.xml does not exist
2025-02-15T19:55:04.338634618Z [WARNING - PLEX] File 2025-02-14_epg.xml does not exist
2025-02-15T19:55:04.338847267Z [NOTIFICATION - PLEX] Collect data for 2025-02-15
2025-02-15T19:55:04.339023161Z [NOTIFICATION - PLEX] Generating 2025-02-15_epg.xml
2025-02-15T19:56:31.884559564Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 87.55 seconds.
2025-02-15T19:56:49.680353527Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 17.80 seconds.
2025-02-15T19:56:49.787906483Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-15T19:56:49.788224745Z [DEBUG - PLEX] Number Programs identified: 18780
2025-02-15T19:56:49.788838037Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-15T19:57:30.785017018Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 41.10 seconds.
2025-02-15T19:58:00.555377032Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-15T19:58:00.570100359Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-15T19:58:00.696680446Z [INFO - PLEX] EPG Scheduler Complete
2025-02-15T19:58:00.700845739Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T19:58:00.715237616Z [INFO - PLEX] Full Playlist: 616
2025-02-15T19:58:00.716222349Z [INFO - PLEX] No Gracenote Playlist: 217
2025-02-15T20:00:03.403284618Z [INFO - PLEX] Checking scheduler thread
2025-02-15T20:06:34.503297869Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T20:06:34.511129066Z [INFO - PLEX] Full Playlist: 616
2025-02-15T20:06:34.511957514Z [INFO - PLEX] Gracenote Playlist: 399
2025-02-15T20:06:34.629681424Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T20:06:34.637428001Z [INFO - PLEX] Full Playlist: 616
2025-02-15T20:06:34.638238115Z [INFO - PLEX] No Gracenote Playlist: 217
2025-02-15T20:08:01.136410185Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-15T20:08:01.137349759Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-15T20:08:01.137573353Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T20:08:01.141089411Z [WARNING - PLEX] File 2025-02-14_media.xml does not exist
2025-02-15T20:08:01.141448211Z [WARNING - PLEX] File 2025-02-14_epg.xml does not exist
2025-02-15T20:08:01.142008923Z [NOTIFICATION - PLEX] Collect data for 2025-02-15
2025-02-15T20:08:01.142237064Z [NOTIFICATION - PLEX] Generating 2025-02-15_epg.xml
2025-02-15T20:09:29.395249238Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 88.25 seconds.
2025-02-15T20:09:47.604655856Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 18.21 seconds.
2025-02-15T20:09:47.718656124Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-15T20:09:47.719005254Z [DEBUG - PLEX] Number Programs identified: 18780
2025-02-15T20:09:47.719499508Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-15T20:10:28.388914727Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 40.78 seconds.
2025-02-15T20:10:58.312388895Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-15T20:10:58.327880013Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-15T20:10:58.459756890Z [INFO - PLEX] EPG Scheduler Complete
2025-02-15T20:15:03.405506611Z [INFO - PLEX] Checking scheduler thread
2025-02-15T20:20:58.860385360Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-15T20:20:58.861451417Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-15T20:20:58.861667427Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T20:20:58.864744310Z [WARNING - PLEX] File 2025-02-14_media.xml does not exist
2025-02-15T20:20:58.865288130Z [WARNING - PLEX] File 2025-02-14_epg.xml does not exist
2025-02-15T20:20:58.865633497Z [NOTIFICATION - PLEX] Collect data for 2025-02-15
2025-02-15T20:20:58.865956597Z [NOTIFICATION - PLEX] Generating 2025-02-15_epg.xml
2025-02-15T20:22:26.233015610Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 87.37 seconds.
2025-02-15T20:22:44.969740427Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 18.74 seconds.
2025-02-15T20:22:45.084107384Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-15T20:22:45.202406544Z [DEBUG - PLEX] Number Programs identified: 18780
2025-02-15T20:22:45.202608655Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-15T20:23:26.156257532Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 41.19 seconds.
2025-02-15T20:23:56.543555642Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-15T20:23:56.558245520Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-15T20:23:56.684986374Z [INFO - PLEX] EPG Scheduler Complete
2025-02-15T20:30:03.409167079Z [INFO - PLEX] Checking scheduler thread
2025-02-15T20:33:57.070256610Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-15T20:33:57.071128846Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-15T20:33:57.071301513Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-15T20:33:57.074072266Z [WARNING - PLEX] File 2025-02-14_media.xml does not exist
2025-02-15T20:33:57.074365014Z [WARNING - PLEX] File 2025-02-14_epg.xml does not exist
2025-02-15T20:33:57.074593707Z [NOTIFICATION - PLEX] Collect data for 2025-02-15
2025-02-15T20:33:57.074795618Z [NOTIFICATION - PLEX] Generating 2025-02-15_epg.xml
2025-02-15T20:35:24.744524290Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 87.67 seconds.
2025-02-15T20:35:42.966866161Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 18.22 seconds.
2025-02-15T20:35:43.085233801Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-15T20:35:43.145007701Z [DEBUG - PLEX] Number Programs identified: 18780
2025-02-15T20:35:43.145281345Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-15T20:36:23.958952952Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 40.99 seconds.
2025-02-15T20:36:54.295978054Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-15T20:36:54.311703719Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-15T20:36:54.438780428Z [INFO - PLEX] EPG Scheduler Complete

Don't know what to make of it. I still don't have any guide data past 4pm and it's 12:42pm (20:42 UTC) now. Guess that's because 4pm here is 2025-02-16T00:00 UTC time and is hasn't fetched guide data for 2025-02-16. Wonder when it will?

This image only collects one day of data

I have to go back and fix other items based on the new API collection methods. This image was only to ensure the pulls were much faster and did not generate the same memory leaks

3 Likes

Ahh, OK. Will wait on the new version.

Do you have a temp directory you're using that I could volume map and maybe reduce the container RAM usage?

Updates merged into latest image 4.01

1 Like

Thanks, working great. Very quick EPG fetches!

2025-02-16T04:49:32.511199957Z [INFO - PLEX] PLEX Generating Device ID
2025-02-16T04:49:32.549719995Z [INFO - MAIN] ⇨ http server started on [::]:7777
2025-02-16T04:49:32.736442652Z [INFO - PLEX] Starting Scheduler thread for plex
2025-02-16T04:49:32.737061027Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-16T04:49:32.737663883Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-16T04:49:32.738133619Z [INFO - PLEX] EPG: Update Today's Data
2025-02-16T04:49:33.416757714Z [INFO - PLEX] Access Token located for local
2025-02-16T04:49:34.389067762Z [INFO - PLEX] Stories by AMC has DRM set. Skipping.
2025-02-16T04:49:47.855202610Z [INFO - PLEX] Updating TMSID for 407 items
2025-02-16T04:49:47.862552052Z [INFO - PLEX] Stations Identified for local: 616/616
2025-02-16T04:49:47.944868320Z [WARNING - PLEX] File 2025-02-15_media.xml does not exist
2025-02-16T04:49:47.945368795Z [NOTIFICATION - PLEX] Collect data for 2025-02-16
2025-02-16T04:49:47.945575203Z [NOTIFICATION - PLEX] Generating 2025-02-16_media.xml
2025-02-16T04:51:11.103849194Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 83.16 seconds.
2025-02-16T04:51:28.348921555Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 17.24 seconds.
2025-02-16T04:51:28.451689059Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-16T04:51:28.451930515Z [DEBUG - PLEX] Number Programs identified: 18675
2025-02-16T04:51:28.452390645Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-16T04:52:06.806558618Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 38.46 seconds.
2025-02-16T04:52:35.963553659Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-16T04:52:35.977508197Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-16T04:52:36.105224043Z [INFO - PLEX] EPG Scheduler Complete
2025-02-16T04:59:33.060346014Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-16T04:59:33.061322519Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-16T04:59:33.077627954Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-16T04:59:33.097233774Z [WARNING - PLEX] File 2025-02-15_media.xml does not exist
2025-02-16T04:59:33.097454501Z [NOTIFICATION - PLEX] Collect data for 2025-02-16
2025-02-16T04:59:33.097708450Z [NOTIFICATION - PLEX] 2025-02-16_media.xml exists
2025-02-16T04:59:33.098036907Z [NOTIFICATION - PLEX] Using cached data for 2025-02-16
2025-02-16T04:59:37.296148548Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-16T04:59:37.296979917Z [DEBUG - PLEX] Number Programs identified: 18675
2025-02-16T04:59:37.297215531Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-16T05:00:17.391726986Z [NOTIFICATION - PLEX] Number of stations 616
2025-02-16T05:00:17.396158617Z [NOTIFICATION - PLEX] Number of EPG Channels 616
2025-02-16T05:00:17.754854218Z [INFO - PLEX] Channel Count 616
2025-02-16T05:00:47.127011386Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-16T05:00:47.141053756Z [NOTIFICATION - PLEX] Collect data for 2025-02-17
2025-02-16T05:00:47.141614090Z [NOTIFICATION - PLEX] Generating 2025-02-17_media.xml
2025-02-16T05:02:16.721001023Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 89.58 seconds.
2025-02-16T05:02:34.389448350Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 17.67 seconds.
2025-02-16T05:02:34.503697973Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-16T05:02:34.503950188Z [DEBUG - PLEX] Number Programs identified: 18759
2025-02-16T05:02:34.504566698Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-16T05:03:34.572952242Z [STATUS - PLEX] generate_epg_style running for 60 seconds...
2025-02-16T05:03:36.018255616Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 61.63 seconds.
2025-02-16T05:04:36.423499099Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-16T05:04:36.447743378Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-16T05:04:36.711575812Z [INFO - PLEX] EPG Scheduler Complete
2025-02-16T05:04:36.711858639Z [INFO - PLEX] Checking scheduler thread
2025-02-16T05:06:00.520205455Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-16T05:06:00.528853858Z [INFO - PLEX] Full Playlist: 616
2025-02-16T05:06:00.529920977Z [INFO - PLEX] Gracenote Playlist: 399
2025-02-16T05:06:00.673773183Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-16T05:06:00.682365780Z [INFO - PLEX] Full Playlist: 616
2025-02-16T05:06:00.683184334Z [INFO - PLEX] No Gracenote Playlist: 217
2025-02-16T05:14:37.149212646Z [INFO - PLEX] Running EPG Scheduler for plex
2025-02-16T05:14:37.150078397Z [INFO - PLEX] EPG: Updating Channel Data
2025-02-16T05:14:37.166226891Z [INFO - PLEX] Reading channel id list cache for all geo locations
2025-02-16T05:14:37.186533244Z [WARNING - PLEX] File 2025-02-15_media.xml does not exist
2025-02-16T05:14:37.186929192Z [NOTIFICATION - PLEX] Collect data for 2025-02-16
2025-02-16T05:14:37.187108082Z [NOTIFICATION - PLEX] 2025-02-16_media.xml exists
2025-02-16T05:14:37.187209094Z [NOTIFICATION - PLEX] Using cached data for 2025-02-16
2025-02-16T05:14:41.447986649Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-16T05:14:41.448704502Z [DEBUG - PLEX] Number Programs identified: 18675
2025-02-16T05:14:41.449122164Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-16T05:15:23.247216142Z [NOTIFICATION - PLEX] Number of stations 616
2025-02-16T05:15:23.251391018Z [NOTIFICATION - PLEX] Number of EPG Channels 616
2025-02-16T05:15:23.645428402Z [INFO - PLEX] Channel Count 616
2025-02-16T05:15:53.182321756Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-16T05:15:53.201501524Z [NOTIFICATION - PLEX] Collect data for 2025-02-17
2025-02-16T05:15:53.202020766Z [NOTIFICATION - PLEX] 2025-02-17_media.xml exists
2025-02-16T05:15:53.202279075Z [NOTIFICATION - PLEX] 1: Using cached data for 2025-02-17
2025-02-16T05:15:57.464874233Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-16T05:15:57.465646205Z [DEBUG - PLEX] Number Programs identified: 18759
2025-02-16T05:15:57.466011669Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-16T05:16:37.698693343Z [NOTIFICATION - PLEX] Number of stations 616
2025-02-16T05:16:37.702986671Z [NOTIFICATION - PLEX] Number of EPG Channels 616
2025-02-16T05:16:38.155987446Z [INFO - PLEX] Channel Count 616
2025-02-16T05:17:37.200770547Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-16T05:17:37.231318758Z [NOTIFICATION - PLEX] Collect data for 2025-02-18
2025-02-16T05:17:37.232064821Z [NOTIFICATION - PLEX] Generating 2025-02-18_media.xml
2025-02-16T05:19:06.352247182Z [NOTIFICATION - PLEX] Station List completed 616: Elapsed time: 89.12 seconds.
2025-02-16T05:19:24.534553565Z [NOTIFICATION - PLEX] MediaContainer XML completed 616: Elapsed time: 18.18 seconds.
2025-02-16T05:19:24.648891848Z [DEBUG - PLEX] Number Stations identified: 616
2025-02-16T05:19:24.649106102Z [DEBUG - PLEX] Number Programs identified: 18559
2025-02-16T05:19:24.649554383Z [STATUS - PLEX] generate_epg_style running for 0 seconds...
2025-02-16T05:19:36.804244633Z [INFO - PLEX] Checking scheduler thread
2025-02-16T05:20:24.651190658Z [STATUS - PLEX] generate_epg_style running for 60 seconds...
2025-02-16T05:20:49.076341656Z [NOTIFICATION - PLEX] EPG XML completed 616: Elapsed time: 84.54 seconds.
2025-02-16T05:22:19.356185238Z [INFO - PLEX] GZIP XML data successfully written to 'data/plex/epg.xml'
2025-02-16T05:22:19.395258932Z [NOTIFICATION - PLEX] EPG Data Collection Complete
2025-02-16T05:22:19.934541030Z [INFO - PLEX] EPG Scheduler Complete

My Portainer stack

version: '3.9'
services:
  # GitHub home for this project with setup instructions: https://github.com/jgomez177/plex-for-channels
  # Docker container home for this project: https://ghcr.io/jgomez177/plex-for-channels
  plex-for-channels:
    image: ghcr.io/jgomez177/plex-for-channels:${TAG}
    container_name: plex-for-channels
    volumes:
      - /volume1/docker/plex:/app/data
    ports:
      - ${HOST_PORT}:${PLEX_PORT}
    environment:
      - PORT=${PLEX_PORT}
    restart: unless-stopped

My Environment variables

TAG=latest
HOST_PORT=7781
PLEX_PORT=7777

Custom m3u settings for plex (non-gracenote) EPG data


Custom m3u settings for gracenote EPG data

Added that and I can see the files in my Host OS directory.
Memory use is high after fetching 5 days EPG. Will have to check again in the AM.


1 Like