mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
10.68k stars 881 forks source link

'utm_medium' is not recognized as an internal or external command #5760

Closed ScribbleGhost closed 1 week ago

ScribbleGhost commented 1 week ago

When trying to download a video from reddit I get:

C:\Users\admin>gallery-dl --filename "reddit {_now:%Y-%m-%d} {title} [{id}].{extension}" https://www.reddit.com/r/ThatsInsane/comments/1dddp9n/lightning_shot_on_s20fe5g_slowmo/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button
.\gallery-dl\reddit\ThatsInsane\reddit 2024-06-18 Lightning 🌩 , shot on S20fe5g #slowmo [1dddp9n].mp4
'utm_medium' is not recognized as an internal or external command,
operable program or batch file.
'utm_name' is not recognized as an internal or external command,
operable program or batch file.
'utm_term' is not recognized as an internal or external command,
operable program or batch file.
'utm_content' is not recognized as an internal or external command,
operable program or batch file.
kattjevfel commented 1 week ago

You need to add single quotes around the URL.

mikf commented 1 week ago

https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command

single quotes

Windows' cmd.exe doesn't support single quotes. It has to be double quotes or backslashes. Or you remove everything after the ? since query parameter don't matter here.

ScribbleGhost commented 1 week ago

Thanks. Since I am on Windows enclosing the URL in double quotes worked.