aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
Commit message (Collapse)AuthorAgeFilesLines
* Add video caption created and deleted hookslutangar2021-12-231-0/+5
|
* Move test functions outside extra-utilsChocobozzz2021-12-172-3/+2
|
* chore(refactor): remove shared folder dependencies to the serverlutangar2021-12-162-3/+3
| | | | | | | | | | | Many files from the `shared` folder were importing files from the `server` folder. When attempting to use Typescript project references to describe dependencies, it highlighted a circular dependency beetween `shared` <-> `server`. The Typescript project forbid such usages. Using project references greatly improve performance by rebuilding only the updated project and not all source files. > see https://www.typescriptlang.org/docs/handbook/project-references.html
* Ability for admins to set default upload valuesChocobozzz2021-12-141-3/+3
|
* Add upload/import/go live video attributes hooksChocobozzz2021-12-103-6/+18
|
* Fix testsChocobozzz2021-12-091-1/+1
|
* Fix torrent metadata update for hlsChocobozzz2021-12-091-1/+10
|
* Update torrents info name on video updateChocobozzz2021-12-081-4/+7
|
* Update torrent metadata on video updateChocobozzz2021-12-081-3/+9
|
* Decrease time to cleanup resumable uploadsChocobozzz2021-12-031-6/+3
|
* Add `req` and `res` as controllers hooks parameterslutangar2021-11-255-12/+13
| | | | | Hooks prefixed by `action:api` now give access the original express req and res. Checkout guide.md for possible usage.
* Add ability to run transcoding jobsChocobozzz2021-11-183-1/+68
|
* Add ability to remove hls/webtorrent filesChocobozzz2021-11-183-14/+82
|
* Fix video update transactionChocobozzz2021-11-101-1/+1
|
* Prevent concurrent video updateChocobozzz2021-11-101-15/+18
|
* Force video updatedAt update on updateChocobozzz2021-11-101-0/+5
|
* Remove resumable cache after upload successChocobozzz2021-11-101-7/+19
|
* Refactor video viewsChocobozzz2021-11-091-36/+8
| | | | | | | | Introduce viewers attribute for live videos Count views for live videos Reduce delay to see the viewer update for lives Add ability to configure video views buffer interval and view ip expiration
* Add video file size info in admin videos listChocobozzz2021-10-291-1/+0
|
* Deprecate filter video queryChocobozzz2021-10-291-2/+8
| | | | Introduce include and isLocal instead
* prevent multiple post-process triggering of upload-resumable (#4175)Rigel Kent2021-10-251-6/+12
| | | | | | | | | * prevent multiple post-process triggering of upload-resumable * switch from 409 to 503 for upload being processed * Improve resumable upload check Co-authored-by: Chocobozzz <me@florianbigard.com>
* Rewrite youtube-dl importChocobozzz2021-10-221-5/+5
| | | | | | | | Use python3 binary Allows to use a custom youtube-dl release URL Allows to use yt-dlp (youtube-dl fork) Remove proxy config from configuration to use HTTP_PROXY and HTTPS_PROXY env variables
* More robust youtube-dl thumbnail importChocobozzz2021-10-111-2/+10
|
* Fix silent 500 after resumable uploadChocobozzz2021-09-091-4/+1
|
* Migrate to webdriverioChocobozzz2021-09-011-3/+3
|
* Add peertube import testChocobozzz2021-08-271-1/+5
|
* esModuleInterop to trueChocobozzz2021-08-2711-15/+15
|
* Remove useless asyncChocobozzz2021-08-262-4/+4
|
* Add support for saving video files to object storage (#4290)Jelle Besseling2021-08-171-12/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for saving video files to object storage * Add support for custom url generation on s3 stored files Uses two config keys to support url generation that doesn't directly go to (compatible s3). Can be used to generate urls to any cache server or CDN. * Upload files to s3 concurrently and delete originals afterwards * Only publish after move to object storage is complete * Use base url instead of url template * Fix mistyped config field * Add rudenmentary way to download before transcode * Implement Chocobozzz suggestions https://github.com/Chocobozzz/PeerTube/pull/4290#issuecomment-891670478 The remarks in question: Try to use objectStorage prefix instead of s3 prefix for your function/variables/config names Prefer to use a tree for the config: s3.streaming_playlists_bucket -> object_storage.streaming_playlists.bucket Use uppercase for config: S3.STREAMING_PLAYLISTS_BUCKETINFO.bucket -> OBJECT_STORAGE.STREAMING_PLAYLISTS.BUCKET (maybe BUCKET_NAME instead of BUCKET) I suggest to rename moveJobsRunning to pendingMovingJobs (or better, create a dedicated videoJobInfo table with a pendingMove & videoId columns so we could also use this table to track pending transcoding jobs) https://github.com/Chocobozzz/PeerTube/pull/4290/files#diff-3e26d41ca4bda1de8e1747af70ca2af642abcc1e9e0bfb94239ff2165acfbde5R19 uses a string instead of an integer I think we should store the origin object storage URL in fileUrl, without base_url injection. Instead, inject the base_url at "runtime" so admins can easily change this configuration without running a script to update DB URLs * Import correct function * Support multipart upload * Remove import of node 15.0 module stream/promises * Extend maximum upload job length Using the same value as for redundancy downloading seems logical * Use dynamic part size for really large uploads Also adds very small part size for local testing * Fix decreasePendingMove query * Resolve various PR comments * Move to object storage after optimize * Make upload size configurable and increase default * Prune webtorrent files that are stored in object storage * Move files after transcoding jobs * Fix federation * Add video path manager * Support move to external storage job in client * Fix live object storage tests Co-authored-by: Chocobozzz <me@florianbigard.com>
* Improve target bitrate calculationChocobozzz2021-08-061-1/+1
|
* Refactor search query optionsChocobozzz2021-07-291-12/+4
|
* Use random names for VOD HLS playlistsChocobozzz2021-07-261-5/+7
|
* Generate random uuid for video filesChocobozzz2021-07-261-2/+2
|
* Reorganize importsChocobozzz2021-07-205-12/+12
|
* Refactor requestsChocobozzz2021-07-2010-11/+11
|
* Introduce comments commandChocobozzz2021-07-201-3/+3
|
* Support short uuid for GET video/playlistChocobozzz2021-06-292-3/+6
|
* Refactor live managerChocobozzz2021-06-171-1/+1
|
* Fix missing transactionsChocobozzz2021-06-151-2/+2
|
* Fetch directly all video attributes for get APIChocobozzz2021-06-111-9/+2
|
* Use separate queries for video filesChocobozzz2021-06-111-1/+1
|
* Fix video upload with a capitalized extChocobozzz2021-06-081-2/+2
|
* add video upload types, add doc middleware to more routesRigel Kent2021-06-062-5/+27
|
* createThumbnail -> updateThumbnailChocobozzz2021-06-042-7/+7
|
* add operationId doc middleware to so API endpointsRigel Kent2021-06-041-0/+4
|
* refactor docMiddleware to support operationId-only formRigel Kent2021-06-043-9/+9
|
* Refactor server errors handlerChocobozzz2021-06-023-0/+9
|
* Refactor getOrCreateAPVideoChocobozzz2021-06-021-2/+15
|
* correct error codes and backward compatRigel Kent2021-06-021-1/+1
|
* refactor API errors to standard error formatRigel Kent2021-06-027-22/+27
|