aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos
Commit message (Collapse)AuthorAgeFilesLines
* Resumable video uploads (#3933)kontrollanten2021-05-101-20/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP: resumable video uploads relates to #324 * fix review comments * video upload: error handling * fix audio upload * fixes after self review * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/middlewares/validators/videos/videos.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * Update server/controllers/api/videos/index.ts Co-authored-by: Rigel Kent <par@rigelk.eu> * update after code review * refactor upload route - restore multipart upload route - move resumable to dedicated upload-resumable route - move checks to middleware - do not leak internal fs structure in response * fix yarn.lock upon rebase * factorize addVideo for reuse in both endpoints * add resumable upload API to openapi spec * add initial test and test helper for resumable upload * typings for videoAddResumable middleware * avoid including aws and google packages via node-uploadx, by only including uploadx/core * rename ex-isAudioBg to more explicit name mentioning it is a preview file for audio * add video-upload-tmp-folder-cleaner job * stronger typing of video upload middleware * reduce dependency to @uploadx/core * add audio upload test * refactor resumable uploads cleanup from job to scheduler * refactor resumable uploads scheduler to compare to last execution time * make resumable upload validator to always cleanup on failure * move legacy upload request building outside of uploadVideo test helper * filter upload-resumable middlewares down to POST, PUT, DELETE also begin to type metadata * merge add duration functions * stronger typings and documentation for uploadx behaviour, move init validator up * refactor(client/video-edit): options > uploadxOptions * refactor(client/video-edit): remove obsolete else * scheduler/remove-dangling-resum: rename tag * refactor(server/video): add UploadVideoFiles type * refactor(mw/validators): restructure eslint disable * refactor(mw/validators/videos): rename import * refactor(client/vid-upload): rename html elem id * refactor(sched/remove-dangl): move fn to method * refactor(mw/async): add method typing * refactor(mw/vali/video): double quote > single * refactor(server/upload-resum): express use > all * proper http methud enum server/middlewares/async.ts * properly type http methods * factorize common video upload validation steps * add check for maximum partially uploaded file size * fix audioBg use * fix extname(filename) in addVideo * document parameters for uploadx's resumable protocol * clear META files in scheduler * last audio refactor before cramming preview in the initial POST form data * refactor as mulitpart/form-data initial post request this allows preview/thumbnail uploads alongside the initial request, and cleans up the upload form * Add more tests for resumable uploads * Refactor remove dangling resumable uploads * Prepare changelog * Add more resumable upload tests * Remove user quota check for resumable uploads * Fix upload error handler * Update nginx template for upload-resumable * Cleanup comment * Remove unused express methods * Prefer to use got instead of raw http * Don't retry on error 500 Co-authored-by: Rigel Kent <par@rigelk.eu> Co-authored-by: Rigel Kent <sendmemail@rigelk.eu> Co-authored-by: Chocobozzz <me@florianbigard.com>
* Update channel updatedAt when uploading a videoChocobozzz2021-05-101-0/+3
|
* Add ability to filter my videos by liveChocobozzz2021-05-031-12/+13
|
* Add banners supportChocobozzz2021-04-081-1/+1
|
* Introduce tags to the loggerChocobozzz2021-03-241-5/+6
| | | | | That could help to filter unneeded logs and/or select particular components
* Fix emptying video tagsChocobozzz2021-03-031-6/+7
|
* Async torrent creationChocobozzz2021-02-251-7/+31
|
* Fix testsChocobozzz2021-02-191-2/+1
|
* Fix thread replies API responseChocobozzz2021-02-191-2/+0
|
* Optimize rate endpointChocobozzz2021-02-191-0/+3
|
* Fix video comments display with deleted commentsChocobozzz2021-02-191-3/+10
|
* CleanupChocobozzz2021-02-181-1/+1
|
* Dissociate video file names and video uuidChocobozzz2021-02-181-2/+5
|
* Remove previous thumbnail if neededChocobozzz2021-02-162-5/+7
|
* Generate a name for caption filesChocobozzz2021-02-162-31/+29
|
* Guess if we need to generate the thumbnail for importsChocobozzz2021-02-121-2/+0
|
* Add priority to transcoding jobsChocobozzz2021-01-251-4/+3
| | | | | | | | | | (1 = highest priority) 100 for new resolutions 10 for original file optimization Add a malus for transcoding jobs depending on how many uploads the user did in the last 7 days
* Fix (again) youtube importChocobozzz2021-01-191-2/+1
|
* stricter youtubedl format selectors (#3516)Rigel Kent2021-01-151-6/+6
| | | | | | | | | | | | | | * stricter youtubedl format selectors make sure selectors avoid av1, and otherwise match as closely to the maximum resolution enabled for transcoding * add support for merge formats in youtubedl * avoid vp9.2 in youtubedl to avoid any HDR * move getEnabledResolutions, safer replace of imported extension * add test for youtube-dl selectors
* Upgrade sequelize to v6Chocobozzz2020-12-091-3/+2
|
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-079-19/+40
|
* Add permanent live supportChocobozzz2020-12-032-1/+4
|
* more explicit error messages for file uploadsRigel Kent2020-12-031-2/+2
|
* Fix 500 on unknown threadChocobozzz2020-11-271-0/+4
|
* Split ffmpeg utils with ffprobe utilsChocobozzz2020-11-251-2/+2
|
* Fix incorrect IDs in AP federationChocobozzz2020-11-204-9/+9
|
* Implement video comment list in adminChocobozzz2020-11-131-1/+35
|
* Remove deprecated abuse apiChocobozzz2020-11-102-117/+1
|
* Handle views for live videosChocobozzz2020-11-091-12/+33
|
* Add live server hooksChocobozzz2020-11-091-0/+3
|
* Regenerate miniature on live saveChocobozzz2020-11-091-1/+1
|
* Begin live testsChocobozzz2020-11-092-3/+9
|
* Add ability to save live replayChocobozzz2020-11-091-6/+31
|
* Handle live federationChocobozzz2020-11-091-1/+0
|
* Refactor video creationChocobozzz2020-11-093-114/+76
|
* Live streaming implementation first stepChocobozzz2020-11-092-1/+119
|
* Add ability to set custom field to video formChocobozzz2020-08-211-1/+1
|
* Optimize default sort when listing videosChocobozzz2020-08-201-27/+27
| | | | createdAt does not have the appropriate index
* Upgrade to angular 10Chocobozzz2020-08-071-0/+1
|
* Add server API to abuse messagesChocobozzz2020-07-311-3/+5
|
* Use 3 tables to represent abusesChocobozzz2020-07-101-80/+29
|
* predefined report reasons & improved reporter UI (#2842)Rigel Kent2020-06-221-3/+8
| | | | | - added `startAt` and `endAt` optional timestamps to help pin down reported sections of a video - added predefined report reasons - added video player with report modal
* Split types and typingsChocobozzz2020-06-185-7/+7
|
* Update server dependenciesChocobozzz2020-06-172-3/+3
|
* Block comments from muted accounts/serversChocobozzz2020-05-291-0/+2
| | | | | | | | | | | | Add better control for users of comments displayed on their videos: * Do not forward comments from muted remote accounts/servers (muted by the current server or by the video owner) * Do not list threads and hide replies (with their children) of accounts/servers muted by the video owner * Hide from RSS comments of muted accounts/servers by video owners Use case: * Try to limit spam propagation in the federation * Add ability for users to automatically hide comments on their videos from undesirable accounts/servers (the comment section belongs to videomakers, so they choose what's posted there)
* Fix comments deleted displayChocobozzz2020-05-291-1/+1
|
* Add ability to bulk delete commentsChocobozzz2020-05-291-26/+9
|
* Align follower handle display on instance display in tablesRigel Kent2020-05-081-1/+1
|
* Switch emails to pug templates and provide richer html/text-only versionsRigel Kent2020-05-081-6/+14
|
* Add moderation helpers to pluginsChocobozzz2020-05-074-53/+13
|