* 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]>
Only for a few routes, that consumes postgresql CPU
Re-implement sequelize connection routing mechanism, to support:
* Replica lag monitoring (to not select replicas that are too far
behind the primary)
* Be opt-in instead of opt-out (primary is used by default, a context
must be marked to use replicas)
* Handle "read-you-writes" mechanism (ensure that reads after writes
see the latest data, using the user ID to track recent writes)
* Add ability to disable audit logs
Add a `log.audit.enabled` configuration option, mirroring the existing
`log.rotation.enabled` shape.
The guard lives in `auditLoggerWrapper`, which every `create`/`update`/
`delete` audit call routes through, so the 13 `auditLoggerFactory`
consumers need no change.
Closes#2686
* Add sort option to channel miniature markup
* Styling
---------
Co-authored-by: Chocobozzz <[email protected]>
Mirroring a big video could not take longer than 3 hours, and the HLS
download budget was taken from `import.videos.timeout`, so raising it to
let a mirror finish also changed video import behaviour.
Add `redundancy.videos.timeout`, feeding both the `video-redundancy` job
TTL and the HLS download budget, the same way `import.videos.timeout`
already feeds `video-import`.
Closes#5519
Simplifications:
* object_storage.enabled is now the only switch, and check at startup
bucket connection
* secondaries no longer adopt the storage directories of the primary
Add remote files caching in a dedicated bucket so secondaries can lazy
static serve them
Publish the youtube-dl cookies file through Redis to support it in
secondaries
Change nginx behaviour using an denylist to secondaries (instead of an
allowlist)
Every keyword `scripts/generate-config-schema.ts` emits -- `type`,
`default`, `description`, `properties`, `items`, `additionalProperties`,
`enum` -- means the same thing in draft-07 and in draft 2020-12, so the
generated document already is a valid 2020-12 schema and saying so changes
nothing about which configurations it admits.
Nothing in this repository reads the keyword: `validate-config-schema.ts`
drops `$schema` before compiling with Ajv. It is there for the consumers
that do read it -- editor completion, third-party validators -- and those
implement 2020-12 where support for the older drafts is fading.
Assisted-by: Claude:claude-opus-5
* Add cross-auth option
* revert some files & no longer exposes the option to the front
* Rename setting
* add external-auth cross-provider test
* fix wrong usage of updateExistingConfig for options not part of customConfig in test
* update config-schema
---------
Co-authored-by: Chocobozzz <[email protected]>
Uses the .yaml files to generate a JSON-Schema
describing the possible configuration options,
and add CI checks to keep this from going stale
and validate the YAML files against the schema.
Assisted-by: claude-code: claude-opus-4-7 (planning) + claude-sonnet-4-7 (execution)
Signed-off-by: cinereal <[email protected]>
* Add configurable default for live replay save option
Allow admins to configure the default state of the 'automatically
publish a replay when your live ends' checkbox via a new
live.save_replay_by_default setting (defaults to false).
Fixes#6304
* refactor(config): move live replay default to defaults section
Relocate `live.save_replay_by_default` to `defaults.live.save_replay`
to better align with the configuration convention where default UI
states are grouped under the `defaults` key.
This change updates:
- Server configuration loading and exposure
- TypeScript models (ServerConfig, CustomConfig)
- Admin configuration interface
- Live creation form default value handling
Refs: #6304
* test(config): update tests for live replay default refactor
Update configuration tests to verify defaults.live.saveReplay instead of the old live.saveReplayByDefault key.
Also update config/test.yaml to match the new configuration structure.
* fix(config): update video imports test and config validator
* fixed tests
* Fix merge
* Fix default save replay in server
---------
Co-authored-by: Chocobozzz <[email protected]>
* Add pop-out player button
* Use native PiP and hide popout fallback
* Revert Live DVR changes
* Add Live DVR with 2h window
* Add Live DVR flag in video watch player options
* Fix Live DVR seekbar and HLS options
* Show PiP button on medium player sizes
* Force PiP button visible in embed
* Disable context menu in embeds
* Match PiP icon size to other controls
* Center popout icon mask
* Center PiP control
* Add context menu flag to embed customizations
* Revert "Center PiP control"
This reverts commit aede705f3f.
* Revert "Center popout icon mask"
This reverts commit 0770471caa.
* Revert "Match PiP icon size to other controls"
This reverts commit cef0b49a02.
* Revert "Force PiP button visible in embed"
This reverts commit 1379d7d0c9.
* Revert "Show PiP button on medium player sizes"
This reverts commit a183536ca7.
* Revert object storage path-style config
* Add configurable per-live DVR window
* Remove force_path_style config dependency
* Fix DVR window validator typing
* Include DVR seconds in live form patch
* Fix logout token revocation race
* Stabilize video import and transcription tests
* Increase video transcription replacement test timeouts
* Revert "Remove force_path_style config dependency"
This reverts commit cac22d193f.
* Revert "Add pop-out player button"
This reverts commit 28ba5f5bb1.
* test(live): add DVR validation coverage
* config: define object_storage.force_path_style default
* style(lint): fix max-len in live DVR files
* style(client): fix lint in live DVR types
* feat(live): switch DVR window to milliseconds and simplify player toggle
* Live DVR adaptations
---------
Co-authored-by: DJBlu <[email protected]>
Co-authored-by: root <[email protected]>
Co-authored-by: root <[email protected]>
Co-authored-by: Chocobozzz <[email protected]>
Prefer using prefix so it doesn't break existing object storage
configuration when we add more settings in the future (because the new
bucket doesn't exist)
* 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
Reduce youtube-dl calls to reduce rate limiting
Handle cases where the video is not available/doesn't exist
Handle lives that are still being post-processed
Stop sync on get info failure to retry next time