Peertube - server hook - published video when user click on the publish button

Hi @Chocobozzz and @all,

I’m trying to make a plugin to enable a « webhook feature » when a new video is published.

I’ve tried via action:api.video.uploaded but this hook seems to be fired directly after the file was uploaded and not when the user clicked on « publish » button.

Does I misunderstood something or used the wrong hook ? Currently, I want to get the video information like : description, uuid, duration and thumbnail.

Romain.

Hi,

The UI first uploads the video, and when the user clicks on « Publish » the UI updates the video.
Then action:api.video.updated will be fired.

OK, I will check that soon.

Thanks for the response :smiley:

Romain.