@krx3d/tizentube2 1.31.710 → 1.31.720
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +4 -0
- package/README.md +14 -0
- package/dist/userScript.js +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -80,6 +80,9 @@ standalone/ # standalone installable app — see "Standalone mo
|
|
|
80
80
|
service/ # standalone's own local proxy + CDP injector (NOT mods/'s service/)
|
|
81
81
|
index.js # Express proxy: rewrites youtube.com/tv, injects userscript <script> tag
|
|
82
82
|
injector.js # CDP-based injector (same technique TizenBrew itself uses)
|
|
83
|
+
remoteAccess.js # LAN page on 0.0.0.0:8098 (PIN): live log buffer, optional JS eval in the
|
|
84
|
+
# page via injector.evaluateInPage. Core modules only, created early in
|
|
85
|
+
# index.js so its buffer catches startup. 8099 stays on 127.0.0.1.
|
|
83
86
|
bootstrap.js # plain ES5 (no ncc/bundling) — copied through as-is to dist/index.js,
|
|
84
87
|
# the actual tizen:service entry point. require()s dist/bundle.js
|
|
85
88
|
# (the real ncc bundle of index.js/injector.js/express/etc, output
|
|
@@ -150,6 +153,7 @@ scripts/pc-installer/ # PC-side install/update script (SDB from the PC,
|
|
|
150
153
|
| `videoQueuing.js` | Manual video queue feature. |
|
|
151
154
|
| `playlistBatchCollect.js` | Batch-collects playlist items (`enablePlaylistBatchCollect`). |
|
|
152
155
|
| `logServer.js` | Optional remote log server (`logServerEnabled`) for on-device debugging. In TizenBrew mode, relays via TizenBrew's own `127.0.0.1:8081` service + CDP-queue fallback. In standalone mode (`window.location.hostname === 'localhost'`), instead POSTs to the standalone service's own `POST /tizentube/log` (see `standalone/service/index.js`), which relays to the PC receiver at `logServerHost`:`logServerPort` (same `/tv-log` path/JSON shape as TizenBrew's `remoteLogger.js`, so the receiver script at `scripts/log-receiver/receiver.ps1` works for both). Host/port are set via the RED-key theme overlay (`mods/ui/ui.js`), standalone-only fields — there's no free-text entry in the native TV settings menu. The standalone *service itself* also self-logs its own lifecycle (startup, uncaught exceptions, DIAL service load, proxy errors) unconditionally to a hardcoded `DEFAULT_LOG_HOST`/`DEFAULT_LOG_PORT` in `standalone/service/index.js`, independent of any page config — added specifically because the service can crash before the page/userscript ever loads, at which point page-driven config never gets read. `relayLog` (the single choke point both the page-side proxy fetch and the CDP-queue drain ultimately funnel through) tracks per-`host:port` availability: after the first failed attempt (fast `ECONNREFUSED`, or a 3s timeout for a genuinely unreachable host that would otherwise hang far longer at the OS TCP-connect level) it skips all further attempts to that target for the rest of the process, so an unreachable/not-running PC receiver can't add repeated delay to every subsequent log call. |
|
|
156
|
+
| `remoteAccess.js` | Standalone only (`enableRemoteAccess`, `enableRemoteEval`, both off by default and kept across restarts). Tells the service what the settings say — CDP path: `window.__ttRemoteAccess`, drained by `injector.js`'s log poll, which writes the answer back to `window.__ttRemoteInfo`; proxy path: `POST /tizentube/remoteAccess`. The service (`standalone/service/remoteAccess.js`) serves a page on TCP 8098 with a 4-digit PIN kept in `tt-remote-access.json` (bookmarks keep working; *New PIN* replaces it). Its log buffer is fed by `relayLog`, so it holds every service line plus page lines while `logServerEnabled` is on; with no receiver IP set, `logServer.js` still sends them, marked `__ttRemoteOnly`, and `relayLog` stops them after buffering. JS eval runs via `injector.evaluateInPage` (CDP path only; promises are awaited by polling, 30 s). Ports for firewalls are in README "Network ports". |
|
|
153
157
|
| `homeBarPreview.js` | Standalone only: builds TizenTube's row on the TV home bar (Smart Hub Preview, TVs up to 2021) from the latest unfinished history entry, the latest playlists and the subscriptions page, via the InnerTube client; hands it to the service (POST on the proxy path, `window.__ttHomeBarPreview` drained by the injector's CDP poll otherwise). `openLaunchAction()` opens what a tile asked for (`window.__ttLaunchAction`, set by the injector from index.html's `ttLaunch`). |
|
|
154
158
|
| `subscriptionChannelFilter.js` | Channels hidden only on the Subscriptions page (and the subscriptions part of the home bar row), picked in `mods/ui/subscriptionChannelsSettings.js` from the channel list (browse `FEchannels`) plus the uploaders of feed videos. Feed tiles carry no channel id and often show an artist or "X und 2 weitere", so each video's uploader is looked up once via oEmbed (`author_name`) and cached in localStorage `ytaf-video-uploaders`; applied through `channelHider.js`'s `filterHiddenChannels` when the page is `subscriptions`. |
|
|
155
159
|
| `internalsCheck.js` | Startup check (`enableInternalsCheck`, default on): once `resolveCommand` exists plus 10s, looks up every icon name TizenTube uses (its own `ICONS` list) in the app's icon registry (the big string-valued `Map` on `_yttv`) and the internals other modules find by string (`resolveCommand`, InnerTube `mappings`, `_yttv` `JSON.parse`, `ENABLE_PREVIEWS_WITH_SOUND`, `this.actionName`); after the first `<video>`, the player container `customUI.js` patches and its button groups. Shows one toast per phase listing missing names, silent otherwise; logs under `internals.`. **Add new icon names to `ICONS` when you use them**, or they go unchecked. |
|
package/README.md
CHANGED
|
@@ -188,9 +188,23 @@ it. The options live on their own settings page under Miscellaneous.
|
|
|
188
188
|
| Log Subscriptions Shelf Layout **(fork)** | One-off diagnostic that records how the Subscriptions page is laid out, for chasing a layout problem on a specific TV |
|
|
189
189
|
| Syslog Output **(fork)** | Sends the same logs to a syslog server (an unRAID box, a router, anything that listens), with its own IP, port and connection test. Frames are RFC 5424, with the TV's model as the HOSTNAME field and `TizenTube` as APP-NAME, so a server that files by host writes one file per TV rather than one called after the page. A name typed into the settings overrides the model. Independent of the log server below, so one can be used without the other |
|
|
190
190
|
| Remote Log Server **(fork)** | Streams logs to a PC receiver for on-device debugging, with a built-in connection test |
|
|
191
|
+
| Remote Access **(fork, standalone only)** | A page on the TV's own address (port 8098) for a notebook or phone: the log live, filterable and downloadable, with no PC receiver needed. Optionally a JavaScript box that runs code in the YouTube page, for testing. Needs a 4-digit PIN; the QR code in Settings carries it. See [Network ports](#network-ports) |
|
|
191
192
|
|
|
192
193
|
Missing something? [Request it](https://github.com/reisxd/TizenTube/issues/new).
|
|
193
194
|
|
|
195
|
+
# Network ports
|
|
196
|
+
|
|
197
|
+
What has to be allowed between VLANs (e.g. in UniFi) for each feature. Nothing here is needed for TizenTube itself to play YouTube.
|
|
198
|
+
|
|
199
|
+
| Port | Direction | Used for | Needed when |
|
|
200
|
+
| --- | --- | --- | --- |
|
|
201
|
+
| TCP 8098 | notebook/phone → TV | **Remote Access** page (standalone app): live log, download, JavaScript console. Needs the 4-digit PIN; 10 wrong PINs lock that address out for 10 minutes. | Settings > Miscellaneous > Remote Access is on |
|
|
202
|
+
| TCP 3030 (default, configurable) | TV → PC | **Remote Log Server**: logs pushed to `scripts/log-receiver/receiver.ps1` | Remote Logging is on and a receiver IP is set |
|
|
203
|
+
| UDP 514 (default, configurable) | TV → syslog server | **Syslog Output** | Syslog Output is on |
|
|
204
|
+
| TCP 8099 | TV only (127.0.0.1) | Standalone service and YouTube proxy. Bound to 127.0.0.1, **not reachable from the network**, no rule needed. | always (standalone) |
|
|
205
|
+
|
|
206
|
+
**Remote Access in short:** turn it on under Settings > Miscellaneous > Remote Access, then pick *Show Address and QR Code* and scan it, or type the address shown (it includes `?pin=`). The PIN stays the same across restarts, so a bookmark keeps working; *New PIN* replaces it. The service log is always there; the page's own log lines appear while *Enable Remote Logging* is on (it turns itself off at each start, as before), with or without a receiver IP. *Allow Running Code* adds a JS box; it works on the debugger launch path (Host PC IP 127.0.0.1), not on the proxy path.
|
|
207
|
+
|
|
194
208
|
# Title keyword filter
|
|
195
209
|
|
|
196
210
|
*Hide Videos by Title Keyword* ships with a list, because a TV has no way to
|