Skip to content

fix(potoken): verify provider up + dump formats on "format not available"#105

Merged
windoze95 merged 1 commit into
mainfrom
fix/potoken-visibility-and-format-diag
Jun 29, 2026
Merged

fix(potoken): verify provider up + dump formats on "format not available"#105
windoze95 merged 1 commit into
mainfrom
fix/potoken-visibility-and-format-diag

Conversation

@windoze95

Copy link
Copy Markdown
Owner

Progress — with fresh cookies, #771 now passes the age gate; the preview now fails Requested format is not available, which usually means the po_token provider isn't serving (authenticated SABR formats stay hidden). node runs on amd64 (verified), so it should be up — but we couldn't see it (its log was hidden) or what formats yt-dlp sees.

  • entrypoint: log the provider to stdout + poll /ping → boot prints po_token provider ready on :4416 (or a WARNING if it never answers).
  • download_preview: on a "format is not available" failure, run yt-dlp -F and log the formats — tells "no formats" (po_token down) from "selector miss".
  • broaden the preview format (720p avc1 + any-audio fallbacks) in case the SABR set lacks a ≤480p avc1+m4a pair.

Verified the rebuilt image logs the provider ready on boot. 321 passed, ruff clean.

🤖 Generated with Claude Code

…ilable"

Progress: with fresh cookies #771 now passes the age gate, but the preview fails
"Requested format is not available" — which usually means the po_token provider
isn't actually serving (authenticated SABR formats stay hidden). node runs on
amd64 (verified), so the provider *should* be up; we just couldn't see it (its
log was redirected to a hidden file) or what formats yt-dlp sees.

- entrypoint: log the provider to stdout and poll its /ping so startup prints
  "po_token provider ready on :4416" (or a WARNING if it never answers).
- download_preview: on a "format is not available" failure, run `yt-dlp -F` and
  log the available formats — distinguishes "no formats" (po_token down) from
  "selector miss".
- broaden the preview format (add 720p avc1 + any-audio fallbacks) in case the
  authenticated SABR set lacks a <=480p avc1+m4a pair.

Verified the rebuilt image logs the provider ready on boot. 321 passed; ruff
clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@windoze95 windoze95 merged commit 7be1755 into main Jun 29, 2026
5 checks passed
@windoze95 windoze95 deleted the fix/potoken-visibility-and-format-diag branch June 29, 2026 21:05
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