Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--cookies flag does not work #19

Open
Martmists-GH opened this issue Dec 30, 2024 · 1 comment
Open

--cookies flag does not work #19

Martmists-GH opened this issue Dec 30, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Martmists-GH
Copy link

Description

yt_dlp.utils.DownloadError: ERROR: [youtube]: Sign in to confirm you’re not a bot. Use --cookies-from-browser or --cookies for the authentication. See  https://github.com/yt-dlp/yt-dlp/wiki/FAQ#how-do-i-pass-cookies-to-yt-dlp  for how to manually pass cookies. Also see  https://github.com/yt-dlp/yt-dlp/wiki/Extractors#exporting-youtube-cookies  for tips on effectively exporting YouTube cookies

This error persists when providing cookies.

Reproduction steps

  1. Download your cookies and add them to a cookies.txt file
  2. Run with python src/youcube/youcube.py --cookies cookies.txt

Screenshots

No response

Logs

No response

@Martmists-GH Martmists-GH added the bug Something isn't working label Dec 30, 2024
@ashley-graves
Copy link

yt-dlp options are hardcoded

with TemporaryDirectory(prefix="youcube-") as temp_dir:
yt_dl_options = {
"format": "worst[ext=mp4]/worst" if is_video else "worstaudio/worst",
"outtmpl": join(temp_dir, "%(id)s.%(ext)s"),
"default_search": "auto",
"restrictfilenames": True,
"extract_flat": "in_playlist",
"progress_hooks": [my_hook],
"logger": YTDLPLogger(),
}
yt_dl = YoutubeDL(yt_dl_options)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants