PeerTube icon indicating copy to clipboard operation
PeerTube copied to clipboard

The `filter:video-watch.video-plugin-metadata.result` hook doesn't run when switching videos in a playlist

Open SteelAlloy opened this issue 1 year ago • 0 comments

Describe the current behavior

Hi !

This may be a regression, all my instances are on the latest version of peertube so I can't test on an older version.

When viewing videos in a playlist, the filter:video-watch.video-plugin-metadata.result hook doesn't run again when navigating to a new video in the playlist.

Steps to reproduce

# Initial load of the playlist
Running hook filter:video-watch.video-plugin-metadata.result of plugin itvplus [logger.ts:24:17](https://dev.itvplus.iiens.net/client/en-US/src/root-helpers/logger.ts)
Running hook action:router.navigation-end of plugin itvplus [logger.ts:24:17](https://dev.itvplus.iiens.net/client/en-US/src/root-helpers/logger.ts)

# Navigating to another video in the playlist
Running hook action:router.navigation-end of plugin itvplus [logger.ts:24:17](https://dev.itvplus.iiens.net/client/en-US/src/root-helpers/logger.ts)

filter:video-watch.video-plugin-metadata.result is not executed in the second part

Describe the expected behavior

The hook should run again when navigating.

Additional information

  • PeerTube instance:
    • URL: https://dev.itvplus.iiens.net
    • Version: 6.3.2

SteelAlloy avatar Oct 13 '24 20:10 SteelAlloy