111 Commits
Author SHA1 Message Date
ImmaeandChocobozzz 4fd6af36e4 Recommendations policy (#7633)
* 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]>
2026-10-28 08:41:59 +01:00
Chocobozzz d6078e6316 New peertube runner version 2026-09-16 10:36:19 +02:00
Chocobozzz 80a1c0b7ff Move away chokidar for files watching
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
2026-08-24 16:22:54 +02:00
Chocobozzz 9ae519495a Update dependencies 2026-08-11 09:07:41 +02:00
Chocobozzz b458cabfc7 Update peertube cli package 2026-07-16 16:35:18 +02:00
Chocobozzz 408ee5450a Remove unused verbose option 2026-07-13 14:01:17 +02:00
Chocobozzz 0f76b76292 Fix exports 2026-07-13 14:01:17 +02:00
Chocobozzz 2df309a4c0 Fix adding/removing instances
Correctly re-set the default instance
Don't remove other instances
2026-07-13 14:01:17 +02:00
Chocobozzz e1f7835ad6 Fix typo 2026-07-10 14:17:59 +02:00
Chocobozzz 55beb53aa8 Publish CLI 1.2.0 2026-06-11 11:01:20 +02:00
Chocobozzz abe764a92d Publish runner v0.6.0 2026-06-11 10:52:19 +02:00
Chocobozzz c5bdcbdc56 Update client dependencies 2026-05-06 08:56:35 +02:00
Chocobozzz 809eb622b2 Use default server values if not provided by CLI 2026-04-22 14:28:50 +02:00
Chocobozzz 46b0a3766b Compile source files
To automatically rebuild on internal dep change
2026-04-22 14:28:06 +02:00
Chocobozzz 39c06b8477 Add remove segments support for video studio
Use signal forms that are simpler to use, especially when we need to
validate multiple controls
2026-04-01 11:12:42 +02:00
Chocobozzz 9e562b9437 oxlint migration for server 2026-03-26 15:15:36 +01:00
Chocobozzz dfe842f2e7 Update runner version 2026-02-27 15:51:47 +01:00
Chocobozzz ece315c3ee Fix stuck runner 2026-02-27 15:48:56 +01:00
Chocobozzz fb85300eeb PeerTube CLI 1.1.0 2026-02-26 14:06:03 +01:00
Chocobozzz 4bb710400d Migrate peertube-cli to tsdown 2026-02-26 12:08:12 +01:00
Chocobozzz 103a174164 Update runner version 2026-02-26 11:29:09 +01:00
Chocobozzz 7c9e870942 Migrate runner to tsdown 2026-02-26 11:27:24 +01:00
Chocobozzz 3a87271e58 Update all project dependencies 2026-02-24 15:14:26 +01:00
Chocobozzz 402d472a56 Fix tests 2026-02-18 10:22:17 +01:00
Chocobozzz 526f1c6df5 Rebuild thumbnail and media file architecture
* 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
2026-02-13 06:20:56 +01:00
Chocobozzz 0920f5fa82 Optimize transcoding job queue
* 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
2026-01-30 16:10:16 +01:00
Chocobozzz 1be3539500 Update translations 2025-12-30 21:20:16 +01:00
Chocobozzz 1f0b31b29f Correctly cleanup ipc socket 2025-12-30 20:56:06 +01:00
Chocobozzz 567ce66fc5 Update runner 2025-12-12 11:07:52 +01:00
Chocobozzz 3ddddc1b72 Remove deprecated fields
* Remove filename from VideoSource
 * Remove commentsEnabled from REST API & ActivityPub
 * Remove redundancies.files from VideoRedundancy
 * Correctly deprecate captionPath from VideoCaption
 * Correctly deprecate path from ActorImage
 * Correctly deprecate storyboardPath from Storyboard
2025-11-18 07:04:15 +01:00
Chocobozzz d68dfe349a Remove some FIXME 2025-11-17 10:10:49 +01:00
Chocobozzz db1dfc6756 Painfully upgrade dependencies 2025-11-14 14:52:17 +01:00
Chocobozzz 381f8e3b3a Add channel collaborators feature
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.
2025-10-28 14:44:44 +01:00
Chocobozzz ed8279eae6 Copy codecs for HLS if possible 2025-10-10 09:05:57 +02:00
Chocobozzz 906b5f7f2c Migrate to pnpm 2025-09-12 08:43:41 +02:00
Chocobozzz eedfb8b0a2 Update runner package 2025-09-10 11:55:24 +02:00
dd52e8b89e Feature for runners - handle storyboard-generation-job (#7191)
* Implement processing storyboards by runners

* Fixed storyboard generation by runners

* use common code patterns

* fix import

* improve debug logging for storyboard generation

* config option for storyboard processing with remote-runners

* refactor repetitive pattern

* refactor storyboard related code to share common utlities

* Fix test

* Fix storyboard generation config logic

* Improve logging

* Added tests for storyboard generation with runners

* Refactor PR

---------

Co-authored-by: ilfarpro <[email protected]>
Co-authored-by: Chocobozzz <[email protected]>
2025-09-10 11:50:06 +02:00
Chocobozzz 9b7edd1c59 Cleanup packages 2025-09-10 07:10:31 +02:00
Chocobozzz 1c5101a22b Update dependencies and version 2025-07-29 11:48:44 +02:00
Chocobozzz 3e1cdb9fa2 Add runner version info 2025-07-29 10:30:33 +02:00
Chocobozzz 309068ae1d Save 2025-07-29 09:46:33 +02:00
Chocobozzz 32fbe20b13 Update CLI version 2025-07-18 09:14:51 +02:00
Chocobozzz ca2c6139ef Improve error handling message 2025-05-26 09:35:16 +02:00
Chocobozzz b4f5fdaf0c Update runner version 2025-05-13 08:08:31 +02:00
Chocobozzz 1d0fdb9864 Add download file timeout 2025-05-12 11:06:42 +02:00
Chocobozzz 034e1bf328 Migrate eslint to v9 2025-05-07 15:49:23 +02:00
Chocobozzz f8db7406cf Upgrade pretty 2025-04-17 14:35:20 +02:00
Luc Didry 04333e817f 🔊 — [peertube-runner] Disable log coloring when TTY does not support it 2025-04-17 14:13:01 +02:00
Chocobozzz 745c051bc3 Update runner version 2025-04-16 15:03:21 +02:00
Chocobozzz a1279d7eb5 Update peertube runner version 2025-04-10 07:15:39 +02:00