diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-22 14:25:19 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-22 14:25:32 +0200 |
commit | 5480933b7f088bf099b25fb467faace814f0da58 (patch) | |
tree | 4a813030959bb1b65ab17493f5f694db99883fc0 /server/tests/api | |
parent | ab4001aade0891b70e456a215ced0f825c57fde8 (diff) | |
download | PeerTube-5480933b7f088bf099b25fb467faace814f0da58.tar.gz PeerTube-5480933b7f088bf099b25fb467faace814f0da58.tar.zst PeerTube-5480933b7f088bf099b25fb467faace814f0da58.zip |
Add peertube short link import test
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/videos/video-imports.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/tests/api/videos/video-imports.ts b/server/tests/api/videos/video-imports.ts index cfb188060..bb1627a27 100644 --- a/server/tests/api/videos/video-imports.ts +++ b/server/tests/api/videos/video-imports.ts | |||
@@ -345,9 +345,14 @@ describe('Test video imports', function () { | |||
345 | it('Should import a peertube video', async function () { | 345 | it('Should import a peertube video', async function () { |
346 | this.timeout(120_000) | 346 | this.timeout(120_000) |
347 | 347 | ||
348 | const toTest = [ FIXTURE_URLS.peertube_long ] | ||
349 | |||
348 | // TODO: include peertube_short when https://github.com/ytdl-org/youtube-dl/pull/29475 is merged | 350 | // TODO: include peertube_short when https://github.com/ytdl-org/youtube-dl/pull/29475 is merged |
349 | for (const targetUrl of [ FIXTURE_URLS.peertube_long ]) { | 351 | if (mode === 'yt-dlp') { |
350 | // for (const targetUrl of [ FIXTURE_URLS.peertube_long, FIXTURE_URLS.peertube_short ]) { | 352 | toTest.push(FIXTURE_URLS.peertube_short) |
353 | } | ||
354 | |||
355 | for (const targetUrl of toTest) { | ||
351 | await servers[0].config.disableTranscoding() | 356 | await servers[0].config.disableTranscoding() |
352 | 357 | ||
353 | const attributes = { | 358 | const attributes = { |