Charon Tuner Project

Did the sign in within Charon, played my local successfully within the Chrome window, closed it, Synced,
then still waiting..... on my local
.

[10:20:55] [Auth] Opening visible Chrome login window for ABC / FX / NatGeo (TVE) (https://abc.com/watch-live)...
[10:20:55] [Auth] Sign in to your account, verify video plays, and then close that Chrome window to sync your session across all 4 tuners.
[10:22:17] [Auth] Single Sign-In session synced from Tuner 1 to Tuners 2, 3, and 4.
[10:22:27] [Sync] Launching browser scan for ABC / FX / NatGeo (TVE) using authenticated Tuner profile...
[10:22:27] [Sync] Using authenticated Chrome profile: C:\Charon\Profiles\Tuner_1
[10:22:28] [Sync] {"status":"waiting_for_page","url":"about:blank"}
[10:22:29] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"","url":"https://abc.com/watch-live"}
[10:22:30] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"","url":"https://abc.com/watch-live"}
[10:22:32] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:33] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:34] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:35] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:36] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:37] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:38] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:39] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:40] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:41] [Sync] {"status":"waiting_for_abc_local_fiber","callSign":"KATC","url":"https://abc.com/watch-live/b2f23a6e-a2a4-4d63-bd3b-e330921b0942?idx=0"}
[10:22:42] [Sync] Scraped 19 channels from ABC / FX / NatGeo (TVE). Resolving Gracenote IDs via http://192.168.0.207:8089...
[10:22:43] [Gracenote] [OK] ABC7 New York -> ABC7 New York (ABCNYST) [StationId: 131575]
[10:22:43] [Gracenote] [OK] ABC7 Los Angeles -> ABC7 Los Angeles (ABCLAST) [StationId: 131577]
[10:22:43] [Gracenote] [OK] 6ABC Philadelphia -> 6ABC Philadelphia (ABCPHST) [StationId: 131580]
[10:22:43] [Gracenote] [OK] ABC7 Chicago -> ABC7 Chicago (ABCCHST) [StationId: 131574]
[10:22:44] [Gracenote] [OK] ABC13 Houston -> ABC13 Houston (ABCHOST) [StationId: 131576]
[10:22:44] [Gracenote] [OK] ABC 11 North Carolina -> North Carolina Multiview (MVNCHD) [StationId: 105738]
[10:22:44] [Gracenote] [OK] ABC7 Bay Area -> ABC7 Bay Area (ABCBAST) [StationId: 131578]
[10:22:44] [Gracenote] [OK] ABC30 Central California -> ABC30 Central CA (ABCCCST) [StationId: 131581]
[10:22:44] [Providers] Loaded 18 provider(s) from C:\Charon\Providers
[10:22:44] [Sync] Complete! Saved 19 channels (19 Gracenote IDs) to C:\Charon\Providers\ABC\channels.json

Thank you for helping me track this down. I know it is a PITA. Are you familiar with using the Chrome Dev Tools console? If you are willing to, I can give you something to run in it that will give me a better idea of what Charon is actually seeing.

Hey i don't mind at all, this will be great for all.
Lets pause for awhile, I have not used the Dev tools console.

That sounds good. Hit me up when you have some time and I will walk you through it. Thanks again.

Added CBS, one unhidden channel. It also does the waiting..... but then does grab it
It plays
And actually I forgot to close the Chrome page, I think??, only one Charon task in task manager.

[11:50:46] [Auth] Opening visible Chrome login window for CBS (TVE) (https://www.cbs.com/live-tv/stream/tveverywhere/)...
[11:50:46] [Auth] Sign in to your account, verify video plays, and then close that Chrome window to sync your session across all 4 tuners.
[11:53:07] [Sync] Launching browser scan for CBS (TVE) using authenticated Tuner profile...
[11:53:07] [Sync] Using authenticated Chrome profile: C:\Charon\Profiles\Tuner_1
[11:53:08] [Sync] {"status":"waiting_for_page","url":"about:blank"}
[11:53:08] [Auth] Single Sign-In session synced from Tuner 1 to Tuners 2, 3, and 4.
[11:53:09] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":1,"url":"https://www.cbs.com/live-tv/stream/tveverywhere/"}
[11:53:10] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":2,"url":"https://www.cbs.com/live-tv/stream/tveverywhere/"}
[11:53:11] [Sync] {"status":"clicked_start_watching_button","url":"https://www.cbs.com/live-tv/stream/tveverywhere/"}
[11:53:12] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":1,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:13] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":2,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:14] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":3,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:15] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":4,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:16] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":5,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:17] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":6,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:18] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":7,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:19] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":8,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:20] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":9,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:21] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":10,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:22] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":11,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:23] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":12,"url":"https://www.cbs.com/live-tv/stream/"}
[11:53:24] [Sync] Scraped 4 channels from CBS (TVE). Resolving Gracenote IDs via http://192.168.x.xxx:8089...
[11:53:24] [Gracenote] Skipping 3 hidden channels (unhide them and scan again to match their Gracenote IDs)
[11:53:25] [Gracenote] [OK] KLFY -> KLFY (KLFY) [StationId: 10541]
[11:53:25] [Providers] Loaded 18 provider(s) from C:\Charon\Providers
[11:53:25] [Sync] Complete! Saved 4 channels (1 Gracenote IDs) to C:\Charon\Providers\CBS\channels.json
[11:53:49] [UI] Copied M3U URL to clipboard: http://192.168.x.xxx:48590/playlist.m3u
[11:55:48] [Sync] Launching browser scan for CBS (TVE) using authenticated Tuner profile...
[11:55:48] [Sync] Using authenticated Chrome profile: C:\Charon\Profiles\Tuner_1
[11:55:49] [Sync] {"status":"waiting_for_page","url":"about:blank"}
[11:55:50] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":1,"url":"https://www.cbs.com/live-tv/stream/tveverywhere/"}
[11:55:51] [Sync] {"status":"clicked_start_watching_button","url":"https://www.cbs.com/live-tv/stream/tveverywhere/"}
[11:55:52] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":1,"url":"https://www.cbs.com/live-tv/stream/"}
[11:55:53] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":2,"url":"https://www.cbs.com/live-tv/stream/"}
[11:55:54] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":3,"url":"https://www.cbs.com/live-tv/stream/"}
[11:55:55] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":4,"url":"https://www.cbs.com/live-tv/stream/"}
[11:55:56] [Sync] {"status":"waiting_for_cbs_player_to_load_station","attempts":5,"url":"https://www.cbs.com/live-tv/stream/"}
[11:55:57] [Sync] Scraped 4 channels from CBS (TVE). Resolving Gracenote IDs via http://192.168.x.xxx:8089...
[11:55:57] [Gracenote] Skipping 3 hidden channels (unhide them and scan again to match their Gracenote IDs)
[11:55:57] [Gracenote] [OK] KLFY -> KLFY (KLFY) [StationId: 10541]
[11:55:58] [Providers] Loaded 18 provider(s) from C:\Charon\Providers
[11:55:58] [Sync] Complete! Saved 4 channels (1 Gracenote IDs) to C:\Charon\Providers\CBS\channels.json
[11:56:08] [UI] Copied M3U URL to clipboard: http://192.168.x.xxx:48590/playlist.m3u
[11:56:15] [UI] Copied M3U URL to clipboard: http://192.168.x.xxx:48590/playlist.m3u
[11:58:10] [Tuner 1] Launching Chrome (Ext v41.1121.1309.26) for CBS (TVE) -> KLFY...
[11:58:12] [Ext 1] BG_v41.1121.1309.26: Service worker started
[11:58:13] [Ext 1] BG_v41.1121.1309.26: Got streamId for tab 210333303
[11:58:19] [Tuner 1] WebM stream active at +9.3s -> piping to FFmpeg...
[11:58:19] [Tuner 1] First MPEG-TS packet delivered to Client at +9.5s!
[11:58:19] [FFmpeg 1] [vost#0:0/copy @ 0000023002470700] Non-monotonic DTS; previous: -2520, current: -2520; changing to -2519. This may result in incorrect timestamps in the output file.
[12:02:46] [Tuner 1] Stream closed by client (KLFY).
[12:03:15] [Tuner 1] Launching Chrome (Ext v41.1121.1309.26) for CBS (TVE) -> KLFY...
[12:03:21] [Ext 1] BG_v41.1121.1309.26: Service worker started
[12:03:21] [Ext 1] BG_v41.1121.1309.26: Got streamId for tab 210333407
[12:03:27] [Tuner 1] WebM stream active at +12.5s -> piping to FFmpeg...
[12:03:28] [FFmpeg 1] [vost#0:0/copy @ 0000026da66209c0] Non-monotonic DTS; previous: -2790, current: -2790; changing to -2789. This may result in incorrect timestamps in the output file.
[12:03:28] [Tuner 1] First MPEG-TS packet delivered to Client at +13.2s!
[12:04:08] [Tuner 1] Stream closed by client (KLFY).

I only have 4 CBS also. The local station and 3 others I consider to be extras that are hidden so as to not be in the guide by default. If you want them added, just unclick the Hide check mark beside the channel you want in the Channel Lineup Editor and click Save Lineup to update it.

When you have time, Open a Chrome browser and go to https://abc.com/watch-live. When the page opens, click F12 on your keyboard.
That should open the Dev Tools. You should see the top nav for it like this:


Click the Console tab.
You should see a blinking cursor like this >|.
Type Allow Pasting and click enter.
Paste this into the Console and hit enter:

(() => {
  const row = document.querySelector('.Channel__displays.KATC');
  const fk = row && Object.keys(row).find(k => k.startsWith('__reactFiber'));
  const seen = new WeakSet();
  return fk ? JSON.stringify(row[fk].memoizedProps, (k, v) => {
    if (k.startsWith('_') || v instanceof Element) return undefined;
    if (v && typeof v === 'object') { if (seen.has(v)) return undefined; seen.add(v); }
    return v;
  }).slice(0, 800) : 'no fiber';
})()

Copy and paste the response.

No blinking cursor

Click don't show again and see if it allows you to type Allow Pasting

image
I click Paste and paste as plain text, but your code doesnt paste. Cursor is not blinking only a >

You have to type allow pasting first. Then you can paste the code

I think I forgot a step. Use Ctrl+V to paste something into it and you should see a warning. When you see the warning, type Allow Pasting.

Ctrl V did nothing.
Gotta step out for a bit

Sounds good. When you have time, try this:
Copy something and have it in your clipboard ready to paste.
Click on the console by the >.
Once it is focused, paste with CtrlV and you should see the yellow self-XSS warning.
Type allow pasting all lower case and click enter.

I am sorry to have given you poor directions. I should have googled it to be sure.

I just does not respond to Ctrl V, or int the Right clock selection box
The football game is playing, you can see it in the sidebar as a black box but live it IS playing

image

I did it in Firefox instead and pasted your script and this is what it showed:
(() => { const row = document.querySelector('.Channel__displays.KATC'); const fk = row && Object.keys(row).find(k => k.startsWith('__reactFiber')); const seen = new WeakSet(); return fk ? JSON.stringify(row[fk].memoizedProps, (k, v) => { if (k.startsWith('_') || v instanceof Element) return undefined; if (v && typeof v === 'object') { if (seen.has(v)) return undefined; seen.add(v); } return v; }).slice(0, 800) : 'no fiber'; })()
.

Looks useful, though I don't have the requisite knowledge to comment on how well it would work. Question:

Charon catches it early and pops up a Windows notification so you can log back in before your next show airs.

Windows notifications typically pop up and then go away, so I worry about missing the message. Could you also put a banner or something in the dashboard about needed logins?

Unrelated feature request: have a light mode/dark mode/system mode toggle in the dashboard interface. I'm one of the apparently few people who find dark mode harder to read than light mode.

Not sure if this is related, but in my Xfinity stream app, I have 2 ABC outlets (I'm between markets, so they supply both), and multiple PBS outlets. In each case, Charon offers only one. (Or, is it only seeing TVE channels, as opposed to all those shown on the stream website?

v1.1.3 released

  • Removal of ESPN TVE. ESPN website terminates authorization too aggressively to be reliable.
  • ABC scraper tweak.

This release will mark the beginning of a slower release cycle. I will only be releasing updates after I have tested them and verified they are ready. Hopefully on a weekly or bi-weekly cycle.

@Flt505 I think the best way to handle the ABC local channel would be to edit the ABC lineup. You can find the local ABC channel by tuning it on their website and copying the address from the browser address bar:
abc
and editing the lineup in Charon: