From c3bb04413ec05dfe544ec74ffdf2f264975bd121 Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Tue, 12 Oct 2021 13:45:55 +0200 Subject: add ...playlist.elements.loaded hook (#4387) * client: add ...playlist.elements.loaded hook closes #4385 * fix linting error * client: add playlist metadata to video-watch hooks * Prefer using a filter for playlist elements hook Co-authored-by: Chocobozzz --- shared/models/plugins/client/client-hook.model.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared') diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts index d811e2c67..7dd8bc507 100644 --- a/shared/models/plugins/client/client-hook.model.ts +++ b/shared/models/plugins/client/client-hook.model.ts @@ -26,6 +26,10 @@ export const clientFilterHookObject = { 'filter:api.video-watch.video.get.params': true, 'filter:api.video-watch.video.get.result': true, + // Filter params/result of the function that fetch video playlist elements of the video-watch page + 'filter:api.video-watch.video-playlist-elements.get.params': true, + 'filter:api.video-watch.video-playlist-elements.get.result': true, + // Filter params/result of the function that fetch the threads of the video-watch page 'filter:api.video-watch.video-threads.list.params': true, 'filter:api.video-watch.video-threads.list.result': true, -- cgit v1.2.3