From 12dc3a942a13c7f1489822dae052da197ef15905 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 19 Jul 2023 16:02:49 +0200 Subject: Implement replace file in server side --- shared/models/plugins/server/server-hook.model.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shared/models/plugins/server') diff --git a/shared/models/plugins/server/server-hook.model.ts b/shared/models/plugins/server/server-hook.model.ts index 0ec62222d..cf387ffd7 100644 --- a/shared/models/plugins/server/server-hook.model.ts +++ b/shared/models/plugins/server/server-hook.model.ts @@ -64,6 +64,7 @@ export const serverFilterHookObject = { 'filter:api.video.pre-import-torrent.accept.result': true, 'filter:api.video.post-import-url.accept.result': true, 'filter:api.video.post-import-torrent.accept.result': true, + 'filter:api.video.update-file.accept.result': true, // Filter the result of the accept comment (thread or reply) functions // If the functions return false then the user cannot post its comment 'filter:api.video-thread.create.accept.result': true, @@ -155,6 +156,9 @@ export const serverActionHookObject = { // Fired when a local video is viewed 'action:api.video.viewed': true, + // Fired when a local video file has been replaced by a new one + 'action:api.video.file-updated': true, + // Fired when a video channel is created 'action:api.video-channel.created': true, // Fired when a video channel is updated -- cgit v1.2.3