@krx3d/tizentube2 1.31.720 → 1.31.740

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 CHANGED
@@ -153,7 +153,7 @@ scripts/pc-installer/ # PC-side install/update script (SDB from the PC,
153
153
  | `videoQueuing.js` | Manual video queue feature. |
154
154
  | `playlistBatchCollect.js` | Batch-collects playlist items (`enablePlaylistBatchCollect`). |
155
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". |
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. Page lines are sent while the remote page is open (`window.__ttRemoteViewer`: pushed by the injector poll on change, polled via `GET /tizentube/remoteAccess` on the proxy path; true while `/api/logs` was asked within 10 s), independent of `logServerEnabled`/syslog — `logServer.js` `isRelayActive()`. Lines not meant for the PC receiver are 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". |
157
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`). |
158
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`. |
159
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
@@ -149,7 +149,7 @@ options are described in the row rather than listed separately.
149
149
 
150
150
  Long-pressing a tile opens a menu of actions for that video. Upstream offers a
151
151
  fixed list of five; this fork makes the list configurable and adds entries to
152
- it. The options live on their own settings page under Miscellaneous.
152
+ it. The options live on their own settings page under Remote control.
153
153
 
154
154
  | Feature | What it does |
155
155
  | --- | --- |
@@ -198,12 +198,20 @@ What has to be allowed between VLANs (e.g. in UniFi) for each feature. Nothing h
198
198
 
199
199
  | Port | Direction | Used for | Needed when |
200
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 |
201
+ | TCP 8098 | notebook/phone → TV | **Remote Access** page (standalone app) at `http://<tv-ip>:8098/?pin=XXXX`: live log, copy, 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
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
203
  | UDP 514 (default, configurable) | TV → syslog server | **Syslog Output** | Syslog Output is on |
204
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
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.
206
+ **Remote Access in short:**
207
+
208
+ 1. On the TV: Settings > Miscellaneous > Remote Access > *Enable Remote Access*. The menu row then shows the address, e.g. `http://192.168.70.115:8098/?pin=1234`.
209
+ 2. On the notebook or phone: open that address, or pick *Show Address and QR Code* and scan it. Without `?pin=` the page asks for the PIN.
210
+ 3. The PIN stays the same across restarts, so a bookmark keeps working; *New PIN* replaces it.
211
+
212
+ The service's own log is always kept (last 2000 lines, including startup). The page's log lines (navigation, ads, player, console) are sent while the remote page is open in a browser, independent of *Enable Remote Logging* and syslog, and cost nothing when nobody is watching. *Copy* copies only the lines currently shown (filter applied); *Download* saves all of them.
213
+
214
+ *Allow Running Code* is for testing and debugging: the remote page gets a JS box that runs code in YouTube on the TV and shows the result (promises are awaited). Works on the debugger launch path (Host PC IP 127.0.0.1), not on the proxy path. Leave it off when you don't need it.
207
215
 
208
216
  # Title keyword filter
209
217