Charon Tuner Project

Couple of questions:

Does this code reauthenticate providers when the auth times out? It's the biggest problem with prism today. I'm guessing not since it's all web-based, mostly talking about Fox, NBC, and USA.

Does it have the startup tuning delays that prism often has where it can take 15 seconds or more to tune a channel?

Thanks, looks like a great replacement for prism which as we know is a project that is not updated very often.

I do not have any reauthentication built into it. When the tokens expire, they will have to be manually logged into. I may add a reminder when they are set to expire. I haven't really looked into it. I haven't experienced long tuning delays, but that depends on how long the sites take to actually tune in. My main goal is to make it as simple and reliable as possible. Hopefully it will help.

I'm glad you said that. I have a few ideas I think I will work on to help with the authentication and maintaining a Health Check and sessions Keep-Alive.

1 Like

Nice.!!
I added ABC, all went according to plan on first try it seems, EXCELLENT, and easy.
BUT... the first channel, my local ABC, instead seems to play the last channel I watched in the group.
The others seem to play as selected.
On the web ui Guide, select the new Charon abc Source and in a Channel collection of those Channels.
.
I added USA, i did not change the M3U UR and it added the 11 USA channels to the end of the ABC channels already in that M3U, so now my USA source in CHDVR has both ABC and USA, that's not a problem.
I Deleted the ABC source because a new Channel Collection for the Combined USA source duplicated each channel.
BUT... again sometimes the channel I select does not play but another, the top one in USA, which is USA channel, seems to play, but i can't be sure of what's going on.
.
In this LOG below it started playing Golf as I selected, as i went backwards (UP) thru the channels each channel played the USA channel until one of the OXYGEN's near the LOG bottom played the Oxygen channel,, but then going up CH and down CH all were the USA Channel, including the Oxygen channels.
Channel numbers in the LOG are correct.

2026/11/20 18:49:15.159074 [TNR] Opened connection to M3U-Charonusa for ch119237 Golf Channel
2026/11/20 18:49:42.200189 [SNR] Buffer statistics for 192.168.0.174 (den on pro) for ch119237 Golf Channel: buf=0% drop=0%
2026/11/20 18:49:42.200189 [TNR] Closed connection to M3U-Charonusa for ch119237 Golf Channel
2026/11/20 18:49:48.022803 [TNR] Opened connection to M3U-Charonusa for ch119236 MS NOW
2026/11/20 18:50:06.632510 [SNR] Buffer statistics for 192.168.0.174 (den on pro) for ch119236 MS NOW: buf=0% drop=0%
2026/11/20 18:50:06.632510 [TNR] Closed connection to M3U-Charonusa for ch119236 MS NOW
2026/11/20 18:50:11.746922 [TNR] Opened connection to M3U-Charonusa for ch119235 CNBC
2026/11/20 18:50:25.996993 [SNR] Buffer statistics for 192.168.0.174 (den on pro) for ch119235 CNBC: buf=0% drop=0%
2026/11/20 18:50:25.997738 [TNR] Closed connection to M3U-Charonusa for ch119235 CNBC
2026/11/20 18:50:30.682233 [TNR] Opened connection to M3U-Charonusa for ch119234 Oxygen (West)
2026/11/20 18:50:45.916390 [SNR] Buffer statistics for 192.168.0.174 (den on pro) for ch119234 Oxygen (West): buf=0% drop=0%
2026/11/20 18:50:45.916390 [TNR] Closed connection to M3U-Charonusa for ch119234 Oxygen (West)
2026/11/20 18:50:50.750585 [TNR] Opened connection to M3U-Charonusa for ch119233 Oxygen (East)
2026/11/20 18:51:40.929752 [SNR] Buffer statistics for 192.168.0.174 (den on pro) for ch119233 Oxygen (East): buf=0% drop=0%
2026/11/20 18:51:40.929752 [TNR] Closed connection to M3U-Charonusa for ch119233 Oxygen (East)
2026/11/20 18:51:45.964865 [TNR] Opened connection to M3U-Charonusa for ch119234 Oxygen (West)
2026/11/20 18:52:02.602467 [SNR] Buffer statistics for 192.168.0.174 (den on pro) for ch119234 Oxygen (West): buf=0% drop=0%
2026/11/20 18:52:02.603884 [TNR] Closed connection to M3U-Charonusa for ch119234 Oxygen (West)
2026/11/20 18:52:07.981652 [TNR] Opened connection to M3U-Charonusa for ch119233 Oxygen (East)

PS Same thing in VLC, clicking on SyFy or any others in the USA group plays USA channel.
However in VLC as I select from the ABC group in that same combined m3u, each channel seems to play correctly.!
Then back into the USA group and all play USA channel
.
Suggestions?
And thanks, this will be great, just a little glitch.

1 Like

Click the reload button beside the scan and sync. That will remove the second entry. I'll look into the ABC issue.
Edit. I'm sorry, I misread the issue. I will look into the issues in the morning. I will have an update coming this weekend as soon as I can run a few more tests

Thanks for the reply.
No hurry i know you will fix the issue... or ME and what I'm doing wrong.

I think it is an issue with the script clicking before the web player has time to mount. I noticed it happening from time to time myself.

I also se there are two instances of Charon running in my WIn (11) task manager.
Maybe one started for each TVE source i did??!!

There should only be one running. I'll add a check on install to stop any running ones first.

I think I have the USA and ABC issues fixed. I will upload a new release tomorrow with other changes too.

v1.1.2 released

USA TVE race condition fix
ABC TVE local station scrape fix
Multi instance fix
Initial session and token manager
Beta ESPN TVE (needs more work)

This release is a little rushed and still has a few bugs to work on.

Here is the concept of the new Health Check feature in Charon. Hopefully others that know more about this than I do can check in and either verify or correct this approach. The health check checks in on your TV providers in the background every few hours—just like opening the website yourself so it doesn't log you out for being inactive.

  • It keeps your logins fresh: Every 12 hours (while nobody is watching TV), Charon opens a hidden Chrome window, visits each of your providers, and lets the website automatically renew your login behind the scenes. That way, channels that normally time out after a day or two stay logged in on their own.
  • It updates all your tuners at once: Once your main tuner refreshes those logins, Charon copies the updated login info over to your backup tuners so they stay ready to go too.
  • It never interrupts playback: If someone is watching a channel or recording a show, the health check waits and tries again every 30 minutes until all tuners are free.
  • It warns you if a manual login is needed: Some providers force a full password login after a set number of days no matter what. When that happens, Charon catches it early and pops up a Windows notification so you can log back in before your next show airs.

One instance of Charon running, I started it from the desktop Icon.
All channels do not load.
here is the Log and your Charon Log: Note: The dANY is using 1227.0.0.1

2026/11/21 08:15:15.201278 [ERR] Failed to start stream for ch119207: M3U: Get "http://192.xxx.x.xxx:48590/stream/abc/abc-local": dial tcp 192.xxx.x.xxx:48590: connectex: No connection could be made because the target machine actively refused it.

2026/11/21 08:15:15.204193 [HLS] Couldn't generate master playlist for ch119207-dANY-ip**127.0.0.1**: M3U: Get "http://192.xxx.x.xxx:48590/stream/abc/abc-local": dial tcp 192.xxx.x.xxx:48590: connectex: No connection could be made because the target machine actively refused it.

2026/11/21 08:15:15.204193 [HLS] Stopping transcoder session ch119207-dANY-ip127.0.0.1 (out=0s finished=false first_seq=0 last_seq=-1)

[08:13:39] [Providers] Loaded 18 provider(s) from C:\Charon\Providers

[08:13:39] [Init] App Directory: C:\Charon\

[08:13:39] [Init] Providers Path: C:\Charon\Providers

[08:13:39] [Init] Chrome Path: C:\Program Files\Google\Chrome\Application\chrome.exe

[08:13:39] [Server] Charon listening on http://192.xxx.x.xxx:48591

[08:13:39] [Server] M3U URL: http://192.xxx.x.xxx:48591/playlist.m3u

[08:18:39] [Health] Starting idle keep-alive & session check for 2 active provider(s)...

[08:18:49] [Health] [OK] ABC / FX / NatGeo (TVE): Session active (https://abc.com/watch-live/40425ae2-f738-44df-89df-e8320295df2c)

[08:18:55] [Health] [OK] USA Network (TVE): Session active (https://www.usanetwork.com/live)

[08:18:59] [Auth] Single Sign-In session synced from Tuner 1 to Tuners 2, 3, and 4.

When you clicked the Open Charon link the second time and had 2 instances of Charon running, it saved the Port as 48591 instead of 48590. There are two was to fix this. Option 1 (easiest) is to change the port number in your Custom Source in channels to be the 48591 port, or Option 2 go to C:\Charon\config.json and edit the "Port": 48591, to "Port": 48590, and exit Charon server and open it again. Either way will work.

Changed the json.
Almost all good, two glitchs.
Remember i have one m3u url named Charon USA Source, which has the ABC group first then the USA group.

  1. The first time i go in and select my local ABC, the first one in ABC group, it says and plays ABC30, the California ch, the last one in the group, not my local.
  2. I play others in the ABC group, all play correctly, I go back to my local ABC it plays the last one selected
    .
    I play channels in the USA group, all play correctly, it does not repeat the issue with the first one in the group playing the previously selected channel as in the ABC group.

@Flt505 Make sure you do a scan and sync with the ABC stations. It will need to scrape them again. Also rescan the M3U in Channels to correct the local ABC link.

Did the scan, looks like its having a problem getting my local, doing ABC NewsLIve, see below.

[09:31:22] [Sync] Using authenticated Chrome profile: C:\Charon\Profiles\Tuner_1
[09:31:23] [Sync] {"status":"waiting_for_page","url":"about:blank"}
[09:31:24] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"","url":"https://abc.com/watch-live"}
[09:31:26] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:27] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:28] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:29] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:30] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:31] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:32] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:33] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:34] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:35] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:36] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/e4c83395-62ed-4a49-829a-c55ab3c33e7d"}
[09:31:37] [Sync] Scraped 19 channels from ABC / FX / NatGeo (TVE). Resolving Gracenote IDs via http://192.168.0.207:8089...
[09:31:38] [Gracenote] [OK] ABC7 New York -> ABC7 New York (ABCNYST) [StationId: 131575]
[09:31:38] [Gracenote] [OK] ABC7 Los Angeles -> ABC7 Los Angeles (ABCLAST) [StationId: 131577]
[09:31:38] [Gracenote] [OK] 6ABC Philadelphia -> 6ABC Philadelphia (ABCPHST) [StationId: 131580]
[09:31:39] [Gracenote] [OK] ABC7 Chicago -> ABC7 Chicago (ABCCHST) [StationId: 131574]
[09:31:39] [Gracenote] [OK] ABC13 Houston -> ABC13 Houston (ABCHOST) [StationId: 131576]
[09:31:39] [Gracenote] [OK] ABC 11 North Carolina -> North Carolina Multiview (MVNCHD) [StationId: 105738]
[09:31:40] [Gracenote] [OK] ABC7 Bay Area -> ABC7 Bay Area (ABCBAST) [StationId: 131578]
[09:31:40] [Gracenote] [OK] ABC30 Central California -> ABC30 Central CA (ABCCCST) [StationId: 131581]
[09:31:40] [Providers] Loaded 18 provider(s) from C:\Charon\Providers
[09:31:40] [Sync] Complete! Saved 19 channels (19 Gracenote IDs) to C:\Charon\Providers\ABC\channels.json
[09:32:53] [Tuner 1] Launching Chrome (Ext v41.1121.1309.26) for ABC / FX / NatGeo (TVE) -> ABC News Live...
[09:32:54] [Ext 1] BG_v41.1121.1309.26: Service worker started
[09:32:55] [Ext 1] BG_v41.1121.1309.26: Got streamId for tab 210331564
[09:33:01] [Tuner 1] WebM stream active at +8.4s -> piping to FFmpeg...
[09:33:02] [Tuner 1] First MPEG-TS packet delivered to Client at +9.7s!
[09:33:32] [Tuner 1] Stream closed by client (ABC News Live).

It looks like I have some more work to do on the ABC Local scraper..

Checked in abc.com, in stand along Chrome web page not within Charon, it started on ABC News Live,
had X on my local. said login in again. i did.
After loggin in again in Chrome stand alone, it still has the error waiting..... on my local.

Also said in a box
image
.
FYI chrome sniffer showed this:

https://linear-abc-akc-na-central-1.media.dssott.com/dvt2=exp=1795363255~url=%2Faor%2F911f5f1e-edda-479d-a894-216ad1c8ed88~psid=992acf50-1ccd-439c-9786-69ba34b02ed1~did=28fbd061-0be6-4ce1-9232-a985d1688c0e~country=US~kid=k02~hmac=9f23d57a31a3ef0b422a254388d2c10789a14fa3c0505c572c467c00499363cf/aor/911f5f1e-edda-479d-a894-216ad1c8ed88/variant.m3u8?cluster=blue&config=YXBpX3Zlcj0xJmNhY2hlX3Zlcj0yMSZkcm09NiZlbmNfbW9kZT00Jm1ldGFkYXRhX29yaWdpbj11cy13ZXN0LTImc3RyZWFtX3R5cGU9bGl2ZSZ0cmFja19pZD04OTI2YTVkZi00NzBjLTQ5ZWYtODU0My1kNjYxYjBjOGE2NzImd2luZG93X3NpemU9OTAwMDAw&dynamic_playlist=lms&manifest_origin=aws-production-us-west-2&hash=e30bd47b8271c17d207ffe3ab6dcf7274654580d3693622a4e9ac04328179050

@Flt505 Let's try one more thing just to be sure. Do the complete ABC Login to Provider, Scan & Sync Lineup. Let me know if it finds the local station when done.