* 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]>
We don't use chokidar because it re-lists the *entire* watched directory and
stats every one of its entries on each filesystem event: a live directory with a
long DVR window holds thousands of segments, so watching it costs a lot of CPU
for every segment the transcoding process generates
* Move to sharp library to improve image manipulation performance and
support more image formats
* Move video previews in thumbnails directory
* Deprecate lazy static previews endpoint
* Plugin `getFiles()` API now includes a `width`/`height` attribute
* Deprecate previewfile for video publication/update.
Use `thumbnailfile` instead
* Deprecate `thumbnailPath` and `previewPath` of `Video` in favour of
`thumbnails`
* Deprecate `thumbnailPath` of `VideoPlaylist` in favour of
`thumbnails`
* Replace `torrentPath` by `torrentFilename` and `torrentStream` for
remote torrents for `filter:api.download.torrent.allowed.result`
plugin filter
* Remove useless `fileUrl` from `UserExport` and `VideoSource`
* Remove remote captions where we don't have a valid URL
* cache directory is not deleted on each run anymore
* Add permanent cache for video captions and storyboards
* Remove `cache` admin configuration, use house-keeping script instead
* Do not wait all transcoding tasks to publish the video
* Do not wait all transcoding tasks to move the video in object storage
* Lower priority on low video resolutions to not block video
publication if they are many uploads at the same time
* Parallelize tasks if they can
For now only an "editor" role is available for collaborators. An editor
has the same right as the channel owner but cannot:
* Delete the channel
* Invite collaborators
* Transfer ownership of a video
* Transfer ownership of a channel (feature not developed yet)
* Invite a new collaborator
* Remove another collaborator
The owner of a channel can invite another local account to be an editor
of the channel. The editor can accept or reject the invitation.
Moved transfer ownership of a video in the "Manage video" page.
Updated the video channel update page to a "Manage" page, like we have
for the video to add an "Editors" sub section, allowing the owner of
the channel to manage channel editors.
Refactored the SQL query classes and added more raw SQL queries for
models that list entities depending on channel collaboration status.
Updated server tests to check editors can manage or cannot manage
channel entities.