Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix youtube-dl tests

Chocobozzza8ca6190fb46
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts
index b78b4f3448..24d83eed9f 100644
--- a/server/tests/api/videos/video-imports.ts
+++ b/server/tests/api/videos/video-imports.ts
@@ -612,11 +612,12 @@ describe('Test video imports', function () {
await testBinaryUpdate('https://api.github.com/repos/ytdl-org/youtube-dl/releases', 'youtube-dl')
})
- it('Should update youtube-dl from raw URL', async function () {
- this.timeout(120_000)
+ // FIXME: official instance is broken
+ // it('Should update youtube-dl from raw URL', async function () {
+ // this.timeout(120_000)
- await testBinaryUpdate('https://yt-dl.org/downloads/latest/youtube-dl', 'youtube-dl')
- })
+ // await testBinaryUpdate('https://yt-dl.org/downloads/latest/youtube-dl', 'youtube-dl')
+ // })
it('Should update youtube-dl from youtube-dl fork', async function () {
this.timeout(120_000)
diff --git a/shared/server-commands/server/servers.ts b/shared/server-commands/server/servers.ts
index fe9da9e63d..2621decf71 100644
--- a/shared/server-commands/server/servers.ts
+++ b/shared/server-commands/server/servers.ts
@@ -46,7 +46,7 @@ function getServerImportConfig (mode: 'youtube-dl' | 'yt-dlp') {
http: {
youtube_dl_release: {
url: mode === 'youtube-dl'
- ? 'https://yt-dl.org/downloads/latest/youtube-dl'
+ ? 'https://api.github.com/repos/ytdl-org/youtube-dl/releases'
: 'https://api.github.com/repos/yt-dlp/yt-dlp/releases',
name: mode