* Filter recommendation policy This commit adds a new option attached to a video, that allows to chose which kind of recommendation will appear below it in the viewer. It currently allows four setups: - Any video (same as currently) - Local videos only - Owner videos only - Same channel videos only This allows the user who owns the video to restrict the recommendations associated to his videos. * Remove old recommendation strategy endpoints * Add tests Tests for the recommendation feature * Add a stateless /api/v1/recommendations/videos route The route accepts a strategy and (optionnally) video ID as query params, and returns a list of recommentations associated to the video and matching the strategy * Add stateless recommendation endpoint: client part * Add an admin-configurable default strategy * Add Federation recommendation strategy information * User import/export settings * Translate changes to French * Use scope instead of strategy for recommendations --------- Co-authored-by: Chocobozzz <[email protected]>
PeerTube CLI
Usage
See https://docs.joinpeertube.org/maintain/tools#remote-tools
Dev
Install dependencies
cd peertube-root
npm run install-node-dependencies
Develop
cd peertube-root
npm run dev:peertube-cli
Build
cd peertube-root
npm run build:peertube-cli
Run
cd peertube-root
node apps/peertube-cli/dist/peertube.js --help
Publish on NPM
cd peertube-root
(cd apps/peertube-cli && npm version patch) && npm run build:peertube-cli && (cd apps/peertube-cli && npm login && npm publish --access=public)