Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Double-Backslash #18682
Double-Backslash #18682
Comments
Invalid. |
|
Since you're on Window$ -and- youtube-dl is a Python program: "C:\Users\Kelvin\AppData\Roaming\youtube-dlg\youtube-dl.exe" "https://www.youtube.com/watch?v=_pUL7u-mYqAyt" -o "C:/Users/Kelvin/Downloads/Other/%%(title)s.%%(ext)s" --ffmpeg-location "C:\Users\Kelvin\Documents\ShareX\Tools\ffmpeg.exe" --metadata-from-title --embed-subs --embed-thumbnail -i --geo-bypass --yes-playlist --write-thumbnail -q -write-sub -x --audio-format mp3 --audio-quality 0 On Window$ when using Batch script files instead of directly executing the command in Command Prompt you must double the percent signs used by a program, like anything made in Python. Also you need to quote paths and web addresses. Paths inside strings meant for Python programs like the Same code for Command Prompt: Both commands untested on my machine. |
|
This works wonderfully. I appreciate your feedback and help.
…On Sat, 29 Dec 2018 at 03:18, Jouni Järvinen ***@***.***> wrote:
Since you're on Window$ -and- youtube-dl is a Python program:
"C:\Users\Kelvin\AppData\Roaming\youtube-dlg\youtube-dl.exe" "
https://www.youtube.com/watch?v=_pUL7u-mYqAyt" -o
"C:/Users/Kelvin/Downloads/Other/%%(title)s.%%(ext)s" --ffmpeg-location
"C:\Users\Kelvin\Documents\ShareX\Tools\ffmpeg.exe" --metadata-from-title
--embed-subs --embed-thumbnail -i --geo-bypass --yes-playlist
--write-thumbnail -q -write-sub -x --audio-format mp3 --audio-quality 0
On Window$ when using Batch script files instead of directly executing the
command in Command Prompt you must double the percent signs used by a
program, like anything made in Python.
Also you need to quote paths and web addresses.
Paths inside strings meant for Python programs like the -o parameter
should use the NIX style of path separation cuz Python could misunderstand
those backslashes, leading into God knows what. Unless you double the
backslashes.
Same code for Command Prompt:
"C:\Users\Kelvin\AppData\Roaming\youtube-dlg\youtube-dl.exe" "https://www.youtube.com/watch?v=_pUL7u-mYqAyt" -o "C:/Users/Kelvin/Downloads/Other/%(title)s.%(ext)s" --ffmpeg-location "C:\Users\Kelvin\Documents\ShareX\Tools\ffmpeg.exe" --metadata-from-title --embed-subs --embed-thumbnail -i --geo-bypass --yes-playlist --write-thumbnail -q -write-sub -x --audio-format mp3 --audio-quality 0
Both commands untested on my machine.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#18682 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AmKv4IHyOWMG-v5jwraxRxqrNjxwt-SDks5u9sL6gaJpZM4ZjWpk>
.
|
This is probably my fault. I am new to this program and pretty clueless.
I am making a shortcut for using this program via AutoHotkey, but it's clear that this is not the cause of the issue, with the issue being that backslashes get duplicated, like this: https://i.imgur.com/dCDEy7c.png
Here is the full command I gave it:
"C:\Users\Kelvin\AppData\Roaming\youtube-dlg\youtube-dl.exe" https://www.youtube.com/watch?v=_pUL7u-mYqAyt -o "C:\Users\Kelvin\Downloads\Other" '%(title)%.%(ext)%' --ffmpeg-location "C:\Users\Kelvin\Documents\ShareX\Tools\ffmpeg.exe" --metadata-from-title --embed-subs --embed-thumbnail -i --geo-bypass --yes-playlist --write-thumbnial -q -write-sub -x --audio-format "mp3" --audio-quality 0
Thanks for your time. I could not find this issue among the bugs posted here.