Escape "=>" in a script.
Posted: 16 Jun 2020 14:00
Hi-
I'm trying to put together a quick script for YouTube-dl. I've seen scripts for this by others on the forum, but I'm just trying to do one with the specific options I like. I've hit a snag trying to "escape" one of my command line options. The command I'm trying to execute is the following (followed by the URL):
youtube-dl -f ("bestvideo[width>=1920]"/bestvideo)+bestaudio/best -ciw -o "%(uploader)s-%(title)s-%(upload_date)s-%(id)s.%(ext)s" -v
The issue seems to be the ">=". What is the appropriate way to escape this? I've read a number of posts regarding multiple """, but so far no luck with this particular pattern. No matter what I've tried it appears to be parsed into two commands at the ">=".
Thanks for any sage advice from the scripting mystics!
I'm trying to put together a quick script for YouTube-dl. I've seen scripts for this by others on the forum, but I'm just trying to do one with the specific options I like. I've hit a snag trying to "escape" one of my command line options. The command I'm trying to execute is the following (followed by the URL):
youtube-dl -f ("bestvideo[width>=1920]"/bestvideo)+bestaudio/best -ciw -o "%(uploader)s-%(title)s-%(upload_date)s-%(id)s.%(ext)s" -v
The issue seems to be the ">=". What is the appropriate way to escape this? I've read a number of posts regarding multiple """, but so far no luck with this particular pattern. No matter what I've tried it appears to be parsed into two commands at the ">=".
Thanks for any sage advice from the scripting mystics!