diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-22 11:43:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-25 10:59:49 +0100 |
commit | 3a149e9f8b2e99507c72792b80cee3a90df003b2 (patch) | |
tree | e12d6279f8a9cb3c3268aa7a006b22a85c42d034 /server/controllers/api/config.ts | |
parent | 6ad88df896e359e428259ff511f6fca3675cb4af (diff) | |
download | PeerTube-3a149e9f8b2e99507c72792b80cee3a90df003b2.tar.gz PeerTube-3a149e9f8b2e99507c72792b80cee3a90df003b2.tar.zst PeerTube-3a149e9f8b2e99507c72792b80cee3a90df003b2.zip |
Add audio only transcoding tests
Diffstat (limited to 'server/controllers/api/config.ts')
-rw-r--r-- | server/controllers/api/config.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts index 8a00f9835..c593fa302 100644 --- a/server/controllers/api/config.ts +++ b/server/controllers/api/config.ts | |||
@@ -357,7 +357,7 @@ function convertCustomConfigBody (body: CustomConfig) { | |||
357 | function keyConverter (k: string) { | 357 | function keyConverter (k: string) { |
358 | // Transcoding resolutions exception | 358 | // Transcoding resolutions exception |
359 | if (/^\d{3,4}p$/.exec(k)) return k | 359 | if (/^\d{3,4}p$/.exec(k)) return k |
360 | if (/^0p$/.exec(k)) return k | 360 | if (k === '0p') return k |
361 | 361 | ||
362 | return snakeCase(k) | 362 | return snakeCase(k) |
363 | } | 363 | } |