aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/videos/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* Fix runner api rate limit bypassChocobozzz2023-06-201-0/+3
|
* Update changelogChocobozzz2022-11-241-0/+1
|
* Put private videos under a specific subdirectoryChocobozzz2022-10-241-0/+2
|
* Use bullmq job dependencyChocobozzz2022-08-091-1/+1
|
* Add channel server hooksChocobozzz2022-08-031-3/+6
|
* store uploaded video filename (#4885)kontrollanten2022-06-211-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * store uploaded video filename closes #4731 * dont crash if videos channel exist * migration: use raw query * video source: fixes after code review * cleanup * bump migration * updates after code review * refactor: use checkUserCanManageVideo * videoSource: add openapi doc * test(check-params/video-source): fix timeout * Styling * Correctly set original filename as source Co-authored-by: Chocobozzz <me@florianbigard.com>
* Support video views/viewers stats in serverChocobozzz2022-04-151-26/+5
| | | | | | | | | | * Add "currentTime" and "event" body params to view endpoint * Merge watching and view endpoints * Introduce WatchAction AP activity * Add tables to store viewer information of local videos * Add endpoints to fetch video views/viewers stats of local videos * Refactor views/viewers handlers * Support "views" and "viewers" counters for both VOD and live videos
* Rename studio to editorChocobozzz2022-03-221-2/+2
|
* Add basic video editor supportChocobozzz2022-02-281-0/+2
|
* Add `req` and `res` as controllers hooks parameterslutangar2021-11-251-3/+3
| | | | | 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-181-0/+2
|
* Add ability to remove hls/webtorrent filesChocobozzz2021-11-181-13/+2
|
* 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
* esModuleInterop to trueChocobozzz2021-08-271-1/+1
|
* Remove useless asyncChocobozzz2021-08-261-2/+2
|
* Refactor search query optionsChocobozzz2021-07-291-12/+4
|
* Refactor requestsChocobozzz2021-07-201-1/+1
|
* Refactor live managerChocobozzz2021-06-171-1/+1
|
* Fetch directly all video attributes for get APIChocobozzz2021-06-111-9/+2
|
* Use separate queries for video filesChocobozzz2021-06-111-1/+1
|
* add video upload types, add doc middleware to more routesRigel Kent2021-06-061-4/+19
|
* refactor docMiddleware to support operationId-only formRigel Kent2021-06-041-3/+3
|
* Refactor server errors handlerChocobozzz2021-06-021-0/+3
|
* Refactor getOrCreateAPVideoChocobozzz2021-06-021-2/+15
|
* refactor API errors to standard error formatRigel Kent2021-06-021-2/+2
|
* Refactor a little bit controllersChocobozzz2021-05-121-391/+15
|
* Stricter models typingChocobozzz2021-05-121-2/+2
|
* 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
|
* 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
|
* CleanupChocobozzz2021-02-181-1/+1
|
* Dissociate video file names and video uuidChocobozzz2021-02-181-2/+5
|
* Remove previous thumbnail if neededChocobozzz2021-02-161-1/+1
|
* 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
* replace numbers with typed http status codes (#3409)Rigel Kent2020-12-071-5/+10
|
* Add permanent live supportChocobozzz2020-12-031-1/+1
|
* more explicit error messages for file uploadsRigel Kent2020-12-031-2/+2
|
* Split ffmpeg utils with ffprobe utilsChocobozzz2020-11-251-2/+2
|
* Fix incorrect IDs in AP federationChocobozzz2020-11-201-2/+2
|
* Remove deprecated abuse apiChocobozzz2020-11-101-3/+1
|
* Handle views for live videosChocobozzz2020-11-091-12/+33
|
* Regenerate miniature on live saveChocobozzz2020-11-091-1/+1
|
* Begin live testsChocobozzz2020-11-091-1/+1
|
* Handle live federationChocobozzz2020-11-091-1/+0
|
* Refactor video creationChocobozzz2020-11-091-54/+24
|