mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
stricter youtubedl format selectors (#3516)
* 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
This commit is contained in:
@@ -196,6 +196,8 @@ export enum HttpStatusCode {
|
||||
*
|
||||
* Indicates that the request could not be processed because of conflict in the request,
|
||||
* such as an edit conflict between multiple simultaneous updates.
|
||||
*
|
||||
* @see HttpStatusCode.UNPROCESSABLE_ENTITY_422 to denote a disabled feature
|
||||
*/
|
||||
CONFLICT_409 = 409,
|
||||
|
||||
@@ -269,6 +271,12 @@ export enum HttpStatusCode {
|
||||
* Official Documentation @ https://tools.ietf.org/html/rfc2518#section-10.3
|
||||
*
|
||||
* The request was well-formed but was unable to be followed due to semantic errors.
|
||||
* The server understands the content type of the request entity (hence a 415 (Unsupported Media Type) status code is inappropriate),
|
||||
* and the syntax of the request entity is correct (thus a 400 (Bad Request) status code is inappropriate) but was unable to process
|
||||
* the contained instructions. For example, this error condition may occur if an JSON request body contains well-formed (i.e.,
|
||||
* syntactically correct), but semantically erroneous, JSON instructions.
|
||||
*
|
||||
* Can also be used to denote disabled features (akin to disabled syntax).
|
||||
*
|
||||
* @see HttpStatusCode.UNSUPPORTED_MEDIA_TYPE_415 if the `Content-Type` was not supported.
|
||||
* @see HttpStatusCode.BAD_REQUEST_400 if the request was not parsable (broken JSON, XML)
|
||||
|
||||
Reference in New Issue
Block a user