mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-23 09:01:43 +00:00
Use double quotes in error message (#2112)
On Windows, double quotes are required, because single quotes get served to youtube-dl. (Yes, cmd.exe is crazy like that). On other system, both double and single quotes are fine, unless the string contains a dollar sign (then you need single quotes). Since virtually no URLs contain dollar signs, double quotes should do.
This commit is contained in:
parent
42e4fcf23a
commit
b4622a328b
@ -1759,6 +1759,6 @@ def _real_extract(self, url):
|
||||
u'Did you forget to quote the URL? Remember that & is a meta '
|
||||
u'character in most shells, so you want to put the URL in quotes, '
|
||||
u'like youtube-dl '
|
||||
u'\'http://www.youtube.com/watch?feature=foo&v=BaW_jenozKc\''
|
||||
u' (or simply youtube-dl BaW_jenozKc ).',
|
||||
u'"http://www.youtube.com/watch?feature=foo&v=BaW_jenozKc" '
|
||||
u' or simply youtube-dl BaW_jenozKc .',
|
||||
expected=True)
|
||||
|
Loading…
Reference in New Issue
Block a user