summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPhilipp Hagemeister <[email protected]>2014-01-08 00:05:09 +0100
committerPhilipp Hagemeister <[email protected]>2014-01-08 00:05:11 +0100
commitb4622a328b8a456dd64ef1e9bc5d388e00cb59a0 (patch)
tree68e0342afdf80bcc2f22da4e6f3346c22a86153b
parent42e4fcf23aace61ec6bf486d79ed0b263f40b73b (diff)
downloadyoutube-dl-b4622a328b8a456dd64ef1e9bc5d388e00cb59a0.tar.gz
youtube-dl-b4622a328b8a456dd64ef1e9bc5d388e00cb59a0.zip
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.
-rw-r--r--youtube_dl/extractor/youtube.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 9424d5e26..8361dda7a 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -1759,6 +1759,6 @@ class YoutubeTruncatedURLIE(InfoExtractor):
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)