aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-import-videos.ts
Commit message (Collapse)AuthorAgeFilesLines
* Avoid concurrency issue on transcodingChocobozzz2022-08-091-3/+3
|
* Use single quotes in server/ and update eslint rulesFlorent2022-08-081-2/+2
|
* Stop using tsconfig registerChocobozzz2022-01-061-5/+3
| | | | Prefer to replace paths at compile time
* Fix migrationsChocobozzz2021-12-171-1/+2
|
* Fix buildChocobozzz2021-12-171-2/+1
|
* shared/ typescript types dir server-commandsChocobozzz2021-12-171-1/+1
|
* chore(refactor): remove shared folder dependencies to the serverlutangar2021-12-161-1/+1
| | | | | | | | | | | Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
* Apply import interval only when reasonable (#4552)mj-saunders2021-11-221-5/+8
| | | | | | | | | | * Apply import interval only when reasonable When importing videos from another service, an interval can be applied between each download. It only really makes sense to apply this interval when the last attempted download actually happened, and not when it was skipped. * Fix boolean notation
* Rewrite youtube-dl importChocobozzz2021-10-221-127/+52
| | | | | | | | Use python3 binary Allows to use a custom youtube-dl release URL Allows to use yt-dlp (youtube-dl fork) Remove proxy config from configuration to use HTTP_PROXY and HTTPS_PROXY env variables
* esModuleInterop to trueChocobozzz2021-08-271-1/+2
|
* Remove useless asyncChocobozzz2021-08-261-1/+1
|
* Use an object to represent a serverChocobozzz2021-07-201-2/+2
|
* Shorter server command namesChocobozzz2021-07-201-5/+5
|
* Introduce videos commandChocobozzz2021-07-201-14/+15
|
* Adapt CLI to new commandsChocobozzz2021-07-201-6/+6
|
* Fix CLI toolsChocobozzz2021-07-201-47/+42
|
* Update tools dependenciesChocobozzz2021-06-251-1/+1
|
* Use a class for youtube-dlChocobozzz2021-05-111-11/+14
|
* Fix 404 AP status codesChocobozzz2021-03-241-4/+1
|
* Fix import script when using the search indexChocobozzz2021-02-191-9/+7
|
* Update server dependenciesChocobozzz2021-02-031-21/+23
|
* add option for video-import CLI to wait between two video imports (#3310)Florent2021-01-251-58/+63
| | | | | | | | * peertube-import-videos: Add --wait-interval option * peertube-import-videos: various code style improvements Co-authored-by: Florent F <florent.fayolle69@gmail.com> Co-authored-by: Rigel Kent <sendmemail@rigelk.eu>
* stricter youtubedl format selectors (#3516)Rigel Kent2021-01-151-2/+2
| | | | | | | | | | | | | | * stricter youtubedl format selectors make sure selectors avoid av1, and otherwise match as closely to the maximum resolution enabled for transcoding * add support for merge formats in youtubedl * avoid vp9.2 in youtubedl to avoid any HDR * move getEnabledResolutions, safer replace of imported extension * add test for youtube-dl selectors
* Fix channels import with a channel with playlistsChocobozzz2020-12-141-3/+8
|
* More robust import script when using since/untilChocobozzz2020-12-141-12/+11
|
* Fix CLI import scriptChocobozzz2020-11-171-29/+41
|
* Catch error in import scriptChocobozzz2020-04-141-6/+10
|
* Update dependenciesChocobozzz2020-02-281-1/+1
|
* peertube-import-videos passes remaining options down to youtube-dlRaphaël Droz2020-02-121-3/+5
|
* Move to eslintcontainChocobozzz2020-02-031-42/+41
|
* Force node 10 usageChocobozzz2020-01-281-4/+0
|
* Fix URL normalization in import scriptChocobozzz2019-12-301-1/+1
|
* Auto add https:// in import script URLsChocobozzz2019-12-301-17/+24
|
* Fix hours in peertube-import-videosFlorent F2019-11-041-0/+1
| | | | | Youtube doesn't store the hour of the publish date so set it to zero in order to compare it.
* Fix remove end slash functionChocobozzz2019-11-041-5/+3
|
* Use typescript paths in cli scripts tooChocobozzz2019-10-211-0/+3
|
* peertube-import-videos.ts: add --tmpdir, --first, --last and --verbose ↵Frank de Lange2019-08-261-37/+48
| | | | | | | | | | | | | | | | | | | | [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
* Add since parameter to peertube-import-videos (#1991)Florent F2019-08-011-1/+35
| | | | | | * Add since parameter to peertube-import-videos * PR remarks + --until <date>
* WIP plugins: move plugin CLI in peertube scriptChocobozzz2019-07-241-18/+16
| | | | Install/uninstall/list plugins remotely
* Add ability to override CLI import attributesChocobozzz2019-06-131-21/+17
|
* Add more CLI testsChocobozzz2019-06-131-56/+89
|
* Fix optional privacy in upload endpointChocobozzz2019-04-251-51/+33
|
* Fix video import CLI scriptChocobozzz2019-04-241-18/+8
| | | | Password is an optional argument
* Shared utils -> extra-utilsChocobozzz2019-04-241-1/+1
| | | | Because they need dev dependencies
* Don't expose constants directly in initializers/Chocobozzz2019-04-111-1/+1
|
* Refractor published date on video importChocobozzz2019-02-121-3/+3
|
* Import original publication date (CLI)Andrés Maldonado2019-02-121-1/+4
| | | | | * Import original publication date when importing a video from YouTube using the CLI * Fix lint issues
* Merge branch 'develop' into pr/1217Chocobozzz2019-02-111-8/+26
|\
| * Fix peertube CLI documentationChocobozzz2019-01-141-3/+11
| |
| * Remove the eventual trailing '/' at the end of urls (see #1453) (#1480)HesioZ2018-12-151-0/+10
| | | | | | remove eventual trailing '/' at the end of urls in import script (see #1453)