From a8ca6190fb462bf6eb5685cfc1d8ae444164a487 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 9 Aug 2023 11:09:06 +0200 Subject: [PATCH] Fix youtube-dl tests --- server/tests/api/videos/video-imports.ts | 9 +++++---- shared/server-commands/server/servers.ts | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index b78b4f344..24d83eed9 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 fe9da9e63..2621decf7 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