Fix youtube-dl tests

pull/5917/head
Chocobozzz 2023-08-09 11:09:06 +02:00
parent 04d1da5621
commit a8ca6190fb
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 6 additions and 5 deletions

View File

@ -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)

View File

@ -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