Skip to content

Add YouTube cookie settings and shared session storage - #22

Merged
meoyawn merged 3 commits into
masterfrom
codex/youtube-session-runtime
Sep 29, 2026
Merged

meoyawn merged 3 commits into
masterfrom
codex/youtube-session-runtime

Conversation

@meoyawn

@meoyawn meoyawn commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

When YouTube requests sign-in, users can now open Settings → YouTube or run listenbox youtube-cookies import <cookies.txt> to save the same Netscape export. The CLI and desktop share a private cookie jar with concurrent snapshot reads, atomic writes, and generation/per-cookie revision checks that protect cookie rotations and user replacements.

  • Send credentials only to YouTube metadata requests; keep them off media hosts and Listenbox requests. Remove cookies from Settings or the CLI to return to anonymous access.
  • Skip unavailable videos and media refusals for the current sync, then reconsider them on the next pass.
  • Build the pinned YouTube.js source with client-owned Moon tasks and offline regressions in vendor/. Aube installs from upstream’s unchanged package-lock.json; the submodule pins fork main at 600a8cb83ecb5ebd55f7b4723c17e03d3ad19498, which contains the merged two-line source fix.

Validation: local moon ci in the standalone client and parent workspace; deterministic cookie rotation, cross-process atomic updates, settings recovery, and mixed playable/unavailable coverage. A clean source build preserves the upstream lockfile, and the relocated build produces the identical embedded bundle. A separate manual live probe with an isolated cookie profile found three accessible videos and five skips; no credentials or authenticated captures were added to the repository. Native Windows execution was not exercised locally.

Source fixes: fork PR, upstream PR. The fork PR is merged, and the client now pins its commit on fork main. Its source tree is identical to the previously tested feature-branch commit. Local standalone client and parent moon ci were checked again for this pin update.

Share atomic cookie snapshots across desktop settings and CLI imports. Maintain rotations without overwriting newer sessions, bundle the pinned YouTube.js source, and skip media refusals until the next sync. Cover session concurrency, credential boundaries, and native settings with deterministic tests.
@meoyawn
meoyawn merged commit 63e752a into master Sep 29, 2026
4 checks passed
@meoyawn
meoyawn deleted the codex/youtube-session-runtime branch September 29, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant