From 32f7f32549d5de1b485a6002df6def00a2847c42 Mon Sep 17 00:00:00 2001 From: Miguel Gargallo Date: Tue, 4 Oct 2022 17:01:21 +0200 Subject: [PATCH 1/3] Fix Crucial guide command leads into errors At university, colleagues and I tried this tool, but all of us got the error at this point: youtube-dl [OPTIONS] URL [URL...] youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best' URL https://www.youtube.com/watch?v=Toon9VARRIU ERROR: You've asked youtube-dl to download the URL "URL". That doesn't make any sense. Simply remove the parameter in your command or configuration. Add -v to the command line to see what arguments and configuration youtube-dl got. So, to avoid future devs into this error... we love the project and want to improve it! By just removing the "URL" word. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cd888c731..ba2e61073 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo # DESCRIPTION **youtube-dl** is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like. - youtube-dl [OPTIONS] URL [URL...] + youtube-dl [OPTIONS] [URL...] # OPTIONS -h, --help Print this help text and exit From ec1c85432c0e171e9d4570dd7075d47d52f90f99 Mon Sep 17 00:00:00 2001 From: Miguel Gargallo Date: Thu, 6 Oct 2022 09:21:28 +0200 Subject: [PATCH 2/3] Improvement: Readme Modified kine 52 to youtube-dl [OPTIONS] URLS --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ba2e61073..f36a6f3ff 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Alternatively, refer to the [developer instructions](#developer-instructions) fo # DESCRIPTION **youtube-dl** is a command-line program to download videos from YouTube.com and a few more sites. It requires the Python interpreter, version 2.6, 2.7, or 3.2+, and it is not platform specific. It should work on your Unix box, on Windows or on macOS. It is released to the public domain, which means you can modify it, redistribute it or use it however you like. - youtube-dl [OPTIONS] [URL...] + youtube-dl [OPTIONS] URLS # OPTIONS -h, --help Print this help text and exit From 64fc2681caf6e0488b66c0704abaa3baa24bed2a Mon Sep 17 00:00:00 2001 From: Miguel Gargallo Date: Fri, 7 Oct 2022 15:18:47 +0200 Subject: [PATCH 3/3] Improvements Improvements --- youtube_dl/options.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/options.py b/youtube_dl/options.py index f6d2b0898..1b65f914a 100644 --- a/youtube_dl/options.py +++ b/youtube_dl/options.py @@ -122,7 +122,7 @@ def parseOpts(overrideArguments=None): kw = { 'version': __version__, 'formatter': fmt, - 'usage': '%prog [OPTIONS] URL [URL...]', + 'usage': '%prog [OPTIONS] URLS', 'conflict_handler': 'resolve', }