From 37a44fc915eef2140e22ceb96aba6b6eb2509007 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 17 Jun 2021 16:02:38 +0200 Subject: Add ability to search playlists --- shared/models/plugins/client/client-hook.model.ts | 5 ++++- shared/models/plugins/server/server-hook.model.ts | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'shared/models/plugins') diff --git a/shared/models/plugins/client/client-hook.model.ts b/shared/models/plugins/client/client-hook.model.ts index 546866845..cedd1be61 100644 --- a/shared/models/plugins/client/client-hook.model.ts +++ b/shared/models/plugins/client/client-hook.model.ts @@ -37,9 +37,12 @@ export const clientFilterHookObject = { // Filter params/result of the function that fetch videos according to the user search 'filter:api.search.videos.list.params': true, 'filter:api.search.videos.list.result': true, - // Filter params/result of the function that fetch video-channels according to the user search + // Filter params/result of the function that fetch video channels according to the user search 'filter:api.search.video-channels.list.params': true, 'filter:api.search.video-channels.list.result': true, + // Filter params/result of the function that fetch video playlists according to the user search + 'filter:api.search.video-playlists.list.params': true, + 'filter:api.search.video-playlists.list.result': true, // Filter form 'filter:api.signup.registration.create.params': true, diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index 88277af5a..dae243dbf 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts @@ -27,6 +27,10 @@ export const serverFilterHookObject = { 'filter:api.search.video-channels.local.list.result': true, 'filter:api.search.video-channels.index.list.params': true, 'filter:api.search.video-channels.index.list.result': true, + 'filter:api.search.video-playlists.local.list.params': true, + 'filter:api.search.video-playlists.local.list.result': true, + 'filter:api.search.video-playlists.index.list.params': true, + 'filter:api.search.video-playlists.index.list.result': true, // Filter the result of the get function // Used to get detailed video information (video watch page for example) -- cgit v1.2.3