]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commit - server/controllers/api/videos/import.ts
Rewrite youtube-dl import
authorChocobozzz <me@florianbigard.com>
Thu, 21 Oct 2021 14:28:39 +0000 (16:28 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 22 Oct 2021 08:25:24 +0000 (10:25 +0200)
commit62549e6c9818f422698f030e0b242609115493ed
tree12a969f694239fe5f926f779698df9523605ee80
parenta71d4140a5b7831dbe2eb7a0dfaa6a755cb2e906
Rewrite youtube-dl import

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
30 files changed:
config/default.yaml
config/production.yaml.example
config/test-1.yaml
config/test-2.yaml
config/test-3.yaml
config/test-4.yaml
config/test-5.yaml
config/test-6.yaml
config/test.yaml
package.json
server/controllers/api/videos/import.ts
server/helpers/requests.ts
server/helpers/youtube-dl.ts [deleted file]
server/helpers/youtube-dl/index.ts [new file with mode: 0644]
server/helpers/youtube-dl/youtube-dl-cli.ts [new file with mode: 0644]
server/helpers/youtube-dl/youtube-dl-info-builder.ts [new file with mode: 0644]
server/helpers/youtube-dl/youtube-dl-wrapper.ts [new file with mode: 0644]
server/initializers/config.ts
server/initializers/constants.ts
server/lib/job-queue/handlers/video-import.ts
server/lib/schedulers/youtube-dl-update-scheduler.ts
server/tests/api/server/proxy.ts
server/tests/api/videos/video-imports.ts
server/tests/fixtures/video_import_preview_yt_dlp.jpg [new file with mode: 0644]
server/tests/fixtures/video_import_thumbnail_yt_dlp.jpg [new file with mode: 0644]
server/tools/peertube-import-videos.ts
shared/extra-utils/miscs/tests.ts
shared/extra-utils/videos/captions.ts
support/docker/production/config/production.yaml
yarn.lock