-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
yt-dlp -x $URL
not working: 404 not found error
#9965
Comments
Your terminal is auto-escaping special characters (adding You can only do one or the other -- either quote the URL or escape the special characters with |
Hmm interesting, I didn't see this mentioned in the docs. Let me try it, thank you! |
It's not mentioned in the docs because it's the behavior of your terminal/shell and doesn't have anything to do with yt-dlp specifically |
Ah okay maybe I'm confused then thank you @bashonly , I just tried escaping the special character but got this:
Not sure what I'm doing wrong. |
you are still quoting and escaping remove the quotes or remove the backslashes |
If you're doing this on Linux, MacOS, or WSL you don't need to escape or quote anything in that particular URL. This may be of help to you: https://www.gnu.org/software/bash/manual/html_node/Quoting.html Works fine for me... 🤷 😄
|
Depends on what shell is being used. E.g. if it's zsh, the |
So in this instance, it's a case of using single quotes around the original URL - not double quotes @jaanli 😉 |
No. Both single and double quotes work in zsh.
Any of these work. Just not escaping the characters and quoting. |
@jaanli - FYI:
|
Thanks for all the help! Truly surprised it is this hard on a MacBook Pro in 2024 :) what are the different factors that cause these constellation of issues to be very difficult to articulate in documentation? Is it really just the escaping? Has anyone seen a UML/flowchart of how escaping algorithms work (or don’t)? I’ll give these solutions a shot when I’m able - if anyone is able to reproduce please let me know! |
There is a lot of noise in this issue that you can ignore. The TL;DR: your terminal automatically escapes special characters. so just don't add quotes around the URL If it's still unclear, then see the examples that seproDev gave; any of these should work |
Hmm @bashonly I tried that but it didn't work :(
Any other advice? |
@jaanli Now you did neither. Either quote the URL or escape the special characters. You need to do one or the other, otherwise your shell will interpret the special characters. If you do both then it also won't work since then you are passing the literal string containing |
Ah that was it, thank you @seproDev !
|
Double quoting seems to be a pretty common mistake. We should see if we can catch it in |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
Tried to run this to extract audio but it didn't work :(
Any advice on how to debug?
P.S. I tried to update because this checklist requires this preflight, to the nightly, but got these errors:
Errors:
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: