Compare commits

...

5 Commits

Author SHA1 Message Date
Miguel Gargallo
5fc10ef578
Merge 64fc2681caf6e0488b66c0704abaa3baa24bed2a into 3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6 2025-04-01 08:34:59 +02:00
dirkf
3eb8d22ddb
[JSInterp] Temporary fix for #33102 2025-03-31 04:21:09 +01:00
Miguel Gargallo
64fc2681ca
Improvements
Improvements
2022-10-07 15:18:47 +02:00
Miguel Gargallo
ec1c85432c
Improvement: Readme
Modified kine 52 to
youtube-dl [OPTIONS] URLS
2022-10-06 09:21:28 +02:00
Miguel Gargallo
32f7f32549
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.
2022-10-04 17:01:21 +02:00
3 changed files with 4 additions and 2 deletions

View File

@ -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] URLS
# OPTIONS
-h, --help Print this help text and exit

View File

@ -686,6 +686,8 @@ class JSInterpreter(object):
raise self.Exception('Cannot get index {idx!r:.100}'.format(**locals()), expr=repr(obj), cause=e)
def _dump(self, obj, namespace):
if obj is JS_Undefined:
return 'undefined'
try:
return json.dumps(obj)
except TypeError:

View File

@ -120,7 +120,7 @@ def parseOpts(overrideArguments=None):
kw = {
'version': __version__,
'formatter': fmt,
'usage': '%prog [OPTIONS] URL [URL...]',
'usage': '%prog [OPTIONS] URLS',
'conflict_handler': 'resolve',
}