-
Notifications
You must be signed in to change notification settings - Fork 158
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-from-browser option not working as expected #447
Comments
OK, so I think I have somewhat resolved this, but may still need an update in the documentation for catt. I'll leave this one open, but happy for it to be closed. It looks like yt-dlp wants I also spotted a bug in yt-dlp where in cookies.py; it passes the I fixed it by removing the '*' and currently watching the video from the previous post. |
It does look like something that might need fixing in catt, the parameter to the option passed through the api needs to be a tuple. |
Thanks for the investigation! Would you mind opening a PR? |
I have stumbled upon this as well. from yt_dlp.options import create_parser
YT_DLP_PARSER = create_parser()
def args_to_ytdlp_options(argument_list: List[str], defaults: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
return YT_DLP_PARSER.parse_args(argument_list, yt_dlp_optparse.Values(defaults)) Surely the option parser should take the incoming string, and parse it into the tuple itself. Especially since
If I manually set the |
I think something along the lines of: match = re.fullmatch('([^+:]+)(?:\+([^:]+))?(?::([^:]+))?(?:::([^:]+))?$', value)
dict[key] = (match[1], match[2], match[3], match[4]) would work in a callback in the optparse configuration. |
Broken in v0.12.11:
|
This one has me stumped, but I suspect it's not catt and is in yt-dlp. I am posting here first because running yt-dlp with
--cookies-from-browser=firefox
does work as intended.I am running Linux and have used
pipx catt
to install catt. To test yt-dlp I usedpipx yt-dlp
and ensured I was running the local pipx version, and not the one on my system.If I run
catt cast -y 'cookies-from-browser=firefox' 'https://www.patreon.com/posts/....
, I get:ERROR: [Patreon] ....: You do not have access to this post
.Running
~/.local/bin/yt-dlp --cookies-from-browser=firefox 'https://www.patreon.com/posts/....
works correctly.I added
-y 'verbose=1'
to thecatt
cli andyt-dlp
acknowledges it got the 'cookies-from-browser=firefox' option,[debug] params: {'verbose': '1', 'cookies-from-browser': 'firefox', 'compat_opts': set(), 'http_headers':....
But unlike when running yt-dlp directly, I do not see:
Extracting cookies from firefox
The versions of yt-dlp I tested above are identical:
[debug] yt-dlp version stable@2024.05.27 from yt-dlp/yt-dlp [12b248ce6] (pip)
The text was updated successfully, but these errors were encountered: