[HOWTO] download tweak when only using yt-CODE that starts with a "-"
Posted: 19 Oct 2022, 20:17
Maybe you are like me and prefer using only the youtøøbe code instead of the URL+CODE.
But on the rare occasion that Code starts with a "-" yt-dlp malfunctions.
As example I use the yt-code / video-code "-aQPecXRcdw"You have to use the "--" trick that signals "end of options, next are file names or URLs" like so:

But on the rare occasion that Code starts with a "-" yt-dlp malfunctions.
As example I use the yt-code / video-code "-aQPecXRcdw"
Code: Select all
guest@porteus:/myvideo/gesundheit/LiebscherBracht$ yt-dlp -f 397+250 -aQPecXRcdw
ERROR: batch file QPecXRcdw could not be read
guest@porteus:/myvideo/gesundheit/LiebscherBracht$ yt-dlp -f 397+250 "-aQPecXRcdw"
ERROR: batch file QPecXRcdw could not be read
Code: Select all
yt-dlp -f 397+250 -- "-aQPecXRcdw"
