Skip to content

Fix YouTube previews and downloads with yt-dlp, Deno, and optional Firefox cookies - #28

Open
DrRedBird wants to merge 5 commits into
BrenticusMaximus:mainfrom
DrRedBird:fix/yt-dlp-firefox-download
Open

Fix YouTube previews and downloads with yt-dlp, Deno, and optional Firefox cookies#28
DrRedBird wants to merge 5 commits into
BrenticusMaximus:mainfrom
DrRedBird:fix/yt-dlp-firefox-download

Conversation

@DrRedBird

Copy link
Copy Markdown

Summary

Fixes #25.

This change addresses YouTube preview and download failures caused by authentication and JavaScript challenge requirements.

Changes

  • Installs yt-dlp[default] so yt-dlp-ejs and the recommended dependencies are available.
  • Detects an existing supported Deno runtime.
  • Installs a checksum-verified, ThemeDeck-managed Deno runtime when needed.
  • Passes Deno's explicit executable path to yt-dlp using --js-runtimes.
  • Adds an optional Use Firefox cookies for YouTube setting, disabled by default.
  • Saves the Firefox-cookie setting between ThemeDeck restarts.
  • Keeps using the verified local yt-dlp fallback when the virtual-environment update fails.
  • Shows yt-dlp and Deno readiness in the ThemeDeck interface.
  • Adds automated tests for yt-dlp installation, Deno setup, Firefox-cookie configuration, and fallback selection.
  • Documents the YouTube support setup.

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.

YouTube Preview fails with "Sign in to confirm you're not a bot" / "The page needs to be reloaded"

1 participant