diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-21 16:28:39 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-22 10:25:24 +0200 |
commit | 62549e6c9818f422698f030e0b242609115493ed (patch) | |
tree | 12a969f694239fe5f926f779698df9523605ee80 /config | |
parent | a71d4140a5b7831dbe2eb7a0dfaa6a755cb2e906 (diff) | |
download | PeerTube-62549e6c9818f422698f030e0b242609115493ed.tar.gz PeerTube-62549e6c9818f422698f030e0b242609115493ed.tar.zst PeerTube-62549e6c9818f422698f030e0b242609115493ed.zip |
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
Diffstat (limited to 'config')
-rw-r--r-- | config/default.yaml | 17 | ||||
-rw-r--r-- | config/production.yaml.example | 5 | ||||
-rw-r--r-- | config/test-1.yaml | 1 | ||||
-rw-r--r-- | config/test-2.yaml | 1 | ||||
-rw-r--r-- | config/test-3.yaml | 1 | ||||
-rw-r--r-- | config/test-4.yaml | 1 | ||||
-rw-r--r-- | config/test-5.yaml | 1 | ||||
-rw-r--r-- | config/test-6.yaml | 1 | ||||
-rw-r--r-- | config/test.yaml | 3 |
9 files changed, 20 insertions, 11 deletions
diff --git a/config/default.yaml b/config/default.yaml index c46d0e883..ec9622477 100644 --- a/config/default.yaml +++ b/config/default.yaml | |||
@@ -85,6 +85,7 @@ client: | |||
85 | # From the project root directory | 85 | # From the project root directory |
86 | storage: | 86 | storage: |
87 | tmp: 'storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... | 87 | tmp: 'storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... |
88 | bin: 'storage/bin/' | ||
88 | avatars: 'storage/avatars/' | 89 | avatars: 'storage/avatars/' |
89 | videos: 'storage/videos/' | 90 | videos: 'storage/videos/' |
90 | streaming_playlists: 'storage/streaming-playlists/' | 91 | streaming_playlists: 'storage/streaming-playlists/' |
@@ -394,13 +395,21 @@ import: | |||
394 | http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html | 395 | http: # Classic HTTP or all sites supported by youtube-dl https://rg3.github.io/youtube-dl/supportedsites.html |
395 | enabled: false | 396 | enabled: false |
396 | 397 | ||
398 | youtube_dl_release: | ||
399 | # Direct download URL to youtube-dl binary | ||
400 | # Github releases API is also supported | ||
401 | # Examples: | ||
402 | # * https://api.github.com/repos/ytdl-org/youtube-dl/releases | ||
403 | # * https://api.github.com/repos/yt-dlp/yt-dlp/releases | ||
404 | url: 'https://yt-dl.org/downloads/latest/youtube-dl' | ||
405 | |||
406 | # youtube-dl binary name | ||
407 | # yt-dlp is also supported | ||
408 | name: 'youtube-dl' | ||
409 | |||
397 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl | 410 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl |
398 | force_ipv4: false | 411 | force_ipv4: false |
399 | 412 | ||
400 | # You can use an HTTP/HTTPS/SOCKS proxy with youtube-dl | ||
401 | proxy: | ||
402 | enabled: false | ||
403 | url: '' | ||
404 | torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file) | 413 | torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file) |
405 | enabled: false | 414 | enabled: false |
406 | 415 | ||
diff --git a/config/production.yaml.example b/config/production.yaml.example index d023070e3..588d6a3a5 100644 --- a/config/production.yaml.example +++ b/config/production.yaml.example | |||
@@ -83,6 +83,7 @@ client: | |||
83 | # From the project root directory | 83 | # From the project root directory |
84 | storage: | 84 | storage: |
85 | tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... | 85 | tmp: '/var/www/peertube/storage/tmp/' # Use to download data (imports etc), store uploaded files before and during processing... |
86 | bin: '/var/www/peertube/storage/bin/' | ||
86 | avatars: '/var/www/peertube/storage/avatars/' | 87 | avatars: '/var/www/peertube/storage/avatars/' |
87 | videos: '/var/www/peertube/storage/videos/' | 88 | videos: '/var/www/peertube/storage/videos/' |
88 | streaming_playlists: '/var/www/peertube/storage/streaming-playlists/' | 89 | streaming_playlists: '/var/www/peertube/storage/streaming-playlists/' |
@@ -407,10 +408,6 @@ import: | |||
407 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl | 408 | # IPv6 is very strongly rate-limited on most sites supported by youtube-dl |
408 | force_ipv4: false | 409 | force_ipv4: false |
409 | 410 | ||
410 | # You can use an HTTP/HTTPS/SOCKS proxy with youtube-dl | ||
411 | proxy: | ||
412 | enabled: false | ||
413 | url: '' | ||
414 | torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file) | 411 | torrent: # Magnet URI or torrent file (use classic TCP/UDP/WebSeed to download the file) |
415 | enabled: false | 412 | enabled: false |
416 | 413 | ||
diff --git a/config/test-1.yaml b/config/test-1.yaml index fe5b3cf44..d5f8299e0 100644 --- a/config/test-1.yaml +++ b/config/test-1.yaml | |||
@@ -11,6 +11,7 @@ database: | |||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test1/tmp/' | 13 | tmp: 'test1/tmp/' |
14 | bin: 'test1/bin/' | ||
14 | avatars: 'test1/avatars/' | 15 | avatars: 'test1/avatars/' |
15 | videos: 'test1/videos/' | 16 | videos: 'test1/videos/' |
16 | streaming_playlists: 'test1/streaming-playlists/' | 17 | streaming_playlists: 'test1/streaming-playlists/' |
diff --git a/config/test-2.yaml b/config/test-2.yaml index b559769c3..9da79da16 100644 --- a/config/test-2.yaml +++ b/config/test-2.yaml | |||
@@ -11,6 +11,7 @@ database: | |||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test2/tmp/' | 13 | tmp: 'test2/tmp/' |
14 | bin: 'test2/bin/' | ||
14 | avatars: 'test2/avatars/' | 15 | avatars: 'test2/avatars/' |
15 | videos: 'test2/videos/' | 16 | videos: 'test2/videos/' |
16 | streaming_playlists: 'test2/streaming-playlists/' | 17 | streaming_playlists: 'test2/streaming-playlists/' |
diff --git a/config/test-3.yaml b/config/test-3.yaml index 9a7a944e9..594439b62 100644 --- a/config/test-3.yaml +++ b/config/test-3.yaml | |||
@@ -11,6 +11,7 @@ database: | |||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test3/tmp/' | 13 | tmp: 'test3/tmp/' |
14 | bin: 'test3/bin/' | ||
14 | avatars: 'test3/avatars/' | 15 | avatars: 'test3/avatars/' |
15 | videos: 'test3/videos/' | 16 | videos: 'test3/videos/' |
16 | streaming_playlists: 'test3/streaming-playlists/' | 17 | streaming_playlists: 'test3/streaming-playlists/' |
diff --git a/config/test-4.yaml b/config/test-4.yaml index 1e4bee974..1e6368bf7 100644 --- a/config/test-4.yaml +++ b/config/test-4.yaml | |||
@@ -11,6 +11,7 @@ database: | |||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test4/tmp/' | 13 | tmp: 'test4/tmp/' |
14 | bin: 'test4/bin/' | ||
14 | avatars: 'test4/avatars/' | 15 | avatars: 'test4/avatars/' |
15 | videos: 'test4/videos/' | 16 | videos: 'test4/videos/' |
16 | streaming_playlists: 'test4/streaming-playlists/' | 17 | streaming_playlists: 'test4/streaming-playlists/' |
diff --git a/config/test-5.yaml b/config/test-5.yaml index 9725e84f4..97f18a7a0 100644 --- a/config/test-5.yaml +++ b/config/test-5.yaml | |||
@@ -11,6 +11,7 @@ database: | |||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test5/tmp/' | 13 | tmp: 'test5/tmp/' |
14 | bin: 'test5/bin/' | ||
14 | avatars: 'test5/avatars/' | 15 | avatars: 'test5/avatars/' |
15 | videos: 'test5/videos/' | 16 | videos: 'test5/videos/' |
16 | streaming_playlists: 'test5/streaming-playlists/' | 17 | streaming_playlists: 'test5/streaming-playlists/' |
diff --git a/config/test-6.yaml b/config/test-6.yaml index a04c8a6a9..156da84d2 100644 --- a/config/test-6.yaml +++ b/config/test-6.yaml | |||
@@ -11,6 +11,7 @@ database: | |||
11 | # From the project root directory | 11 | # From the project root directory |
12 | storage: | 12 | storage: |
13 | tmp: 'test6/tmp/' | 13 | tmp: 'test6/tmp/' |
14 | bin: 'test6/bin/' | ||
14 | avatars: 'test6/avatars/' | 15 | avatars: 'test6/avatars/' |
15 | videos: 'test6/videos/' | 16 | videos: 'test6/videos/' |
16 | streaming_playlists: 'test6/streaming-playlists/' | 17 | streaming_playlists: 'test6/streaming-playlists/' |
diff --git a/config/test.yaml b/config/test.yaml index 9a522a983..3eb2f04d8 100644 --- a/config/test.yaml +++ b/config/test.yaml | |||
@@ -118,9 +118,6 @@ import: | |||
118 | concurrency: 2 | 118 | concurrency: 2 |
119 | http: | 119 | http: |
120 | enabled: true | 120 | enabled: true |
121 | proxy: | ||
122 | enabled: false | ||
123 | url: "" | ||
124 | torrent: | 121 | torrent: |
125 | enabled: true | 122 | enabled: true |
126 | 123 | ||