From 64fd6158fd276f258bcfc4bb0c8fc2f64a220a11 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Aug 2022 13:40:56 +0200 Subject: Fix resolution to transcode hook name --- server/tests/fixtures/peertube-plugin-test/main.js | 2 +- server/tests/plugins/filter-hooks.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/tests') diff --git a/server/tests/fixtures/peertube-plugin-test/main.js b/server/tests/fixtures/peertube-plugin-test/main.js index b3febfa12..813482a27 100644 --- a/server/tests/fixtures/peertube-plugin-test/main.js +++ b/server/tests/fixtures/peertube-plugin-test/main.js @@ -301,7 +301,7 @@ async function register ({ registerHook, registerSetting, settingsManager, stora }) registerHook({ - target: 'filter:transcoding.auto.lower-resolutions-to-transcode.result', + target: 'filter:transcoding.auto.resolutions-to-transcode.result', handler: (object, context) => { if (context.video.name.includes('transcode-filter')) { object = [ 100 ] diff --git a/server/tests/plugins/filter-hooks.ts b/server/tests/plugins/filter-hooks.ts index 015459ead..7e98d9be6 100644 --- a/server/tests/plugins/filter-hooks.ts +++ b/server/tests/plugins/filter-hooks.ts @@ -680,7 +680,7 @@ describe('Test plugin filter hooks', function () { describe('Transcoding filters', async function () { - it('Should run filter:transcoding.auto.lower-resolutions-to-transcode.result', async function () { + it('Should run filter:transcoding.auto.resolutions-to-transcode.result', async function () { const { uuid } = await servers[0].videos.quickUpload({ name: 'transcode-filter' }) await waitJobs(servers) -- cgit v1.2.3