You are not logged in.

#1 2021-12-22 08:54:53

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

[SOLVED] Can't use youtube-dl while on zsh.

When i try to watch a youtube video by using youtube-dl + mpv it goes like this: zsh: no matches found: https://invidious.snopyta.org/video-urlthere
Same with youtube-dl when i try to simply download a video.
But it works fine on bash.

Last edited by WeebSpirit (2021-12-25 13:38:18)

Offline

#2 2021-12-22 11:56:32

seth
Member
Registered: 2012-09-03
Posts: 51,282

Re: [SOLVED] Can't use youtube-dl while on zsh.

Put the url in single quotes

youtube-dl 'https://www.youtube.com/watch?v=6HTCY4DDLoQ'
mpv 'https://www.youtube.com/watch?v=6HTCY4DDLoQ'

Also consider switching to https://archlinux.org/packages/community/any/yt-dlp/ because of https://github.com/ytdl-org/youtube-dl/issues/30119 (has no impact on the quoting requirement, the url triggers zsh's extended globbing features)

Offline

#3 2021-12-22 12:28:51

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Can't use youtube-dl while on zsh.

Prefix the call with noglob


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2021-12-22 20:01:42

WeebSpirit
Member
Registered: 2021-10-27
Posts: 91

Re: [SOLVED] Can't use youtube-dl while on zsh.

Thank you guys! It works now!

Offline

#5 2021-12-22 20:12:18

seth
Member
Registered: 2012-09-03
Posts: 51,282

Re: [SOLVED] Can't use youtube-dl while on zsh.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB