diff options
author | Frank de Lange <github-f@unternet.org> | 2019-08-26 11:35:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-26 11:35:28 +0200 |
commit | bda3b70537549d3b4f22a56f8fd020e88f19f2a5 (patch) | |
tree | e52c88ce2da6fa2555e75f56f36d720fc890ddac /.editorconfig | |
parent | f3ea7ecee11359d09b62804f95366710d295015d (diff) | |
download | PeerTube-bda3b70537549d3b4f22a56f8fd020e88f19f2a5.tar.gz PeerTube-bda3b70537549d3b4f22a56f8fd020e88f19f2a5.tar.zst PeerTube-bda3b70537549d3b4f22a56f8fd020e88f19f2a5.zip |
peertube-import-videos.ts: add --tmpdir, --first, --last and --verbose [level] parameters (#2045)
* peertube-import-videos.ts: add --tmpdir <tmpdir> parameter, used to designate working directory for downloading and converting imported videos
* peertube-import-videos.ts: add --first and --last parameters to limit processing of the returned playlist to the first/last N elements
* peertube-import-videos.ts: add --verbose [verbosity] parameter, set this from 0 (only errors are reported) to 4 (for trace debugging), default is 2 (info). When --verbose is used without the optional parameter the logging level is set to 3 (debug). At level 1 (warn) it will only report on successfully uploaded videos (and/or errors), use this when running peertube-import-videos in a cron job to mirror a channel.
* package.json: remove dependency on loglevel
cli.ts: add getLogger(loglevel), to be used in CLI tools, add --verbose to set log level
peertube-import-videos: use getLogger (from cli) instead of loglevel, add error_exit (log error and exit), move --verbose to cli.ts, etc.
* cli.ts: remove superfluous reference to default logging level
* peertube-import-videos: exit_error -> exitError
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions