Add optional cookies.txt support for authenticated downloads#25
Open
williamtwomey wants to merge 1 commit intoaverygan:mainfrom
Open
Add optional cookies.txt support for authenticated downloads#25williamtwomey wants to merge 1 commit intoaverygan:mainfrom
williamtwomey wants to merge 1 commit intoaverygan:mainfrom
Conversation
Sites like X/Twitter require login to access certain content — this lets yt-dlp use a cookies.txt file (Netscape format) when one is present, so those downloads just work. - app.py checks for cookies.txt and passes --cookies to yt-dlp - docker-compose.yml bind-mounts the file into the container - cookies.txt added to .gitignore since it contains session data
DeBondor
added a commit
to DeBondor/reclip
that referenced
this pull request
Apr 11, 2026
…an#14 — cookies, playlist, AAC, GIF, batch download - averygan#25: cookies.txt support (COOKIES_FILE auto-detected, passed to all yt-dlp calls) - averygan#28: YouTube playlist expansion via /api/playlist endpoint (flat-playlist -J) - averygan#29: Force AAC audio codec (-S acodec:aac) for all video/audio downloads - averygan#20: GIF export via ffmpeg 2-pass palettegen/paletteuse, 15fps, max 480px width - averygan#14: Batch download via /api/batch/download + /api/batch/status, ThreadPoolExecutor(3), parallel Download All
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Some sites (X/Twitter and Youtube) require authentication to serve certain content. Without cookies, yt-dlp just returns "No video could be found in this tweet" and there's no way around it.
This adds optional
cookies.txtsupport:cookies.txtfile exists in the project root, yt-dlp will use it for both info fetching and downloadsdocker-compose.ymlbind-mounts the file into the container so it's available at runtimecookies.txtis gitignored since it contains session dataUsage
cookies.txtin the project rootWorks for any site where yt-dlp supports cookie-based auth, not just X.