aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers/api')
-rw-r--r--server/controllers/api/config.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/api/config.ts b/server/controllers/api/config.ts
index 70e8aa970..8a00f9835 100644
--- a/server/controllers/api/config.ts
+++ b/server/controllers/api/config.ts
@@ -300,6 +300,7 @@ function customConfig (): CustomConfig {
300 allowAudioFiles: CONFIG.TRANSCODING.ALLOW_AUDIO_FILES, 300 allowAudioFiles: CONFIG.TRANSCODING.ALLOW_AUDIO_FILES,
301 threads: CONFIG.TRANSCODING.THREADS, 301 threads: CONFIG.TRANSCODING.THREADS,
302 resolutions: { 302 resolutions: {
303 '0p': CONFIG.TRANSCODING.RESOLUTIONS[ '0p' ],
303 '240p': CONFIG.TRANSCODING.RESOLUTIONS[ '240p' ], 304 '240p': CONFIG.TRANSCODING.RESOLUTIONS[ '240p' ],
304 '360p': CONFIG.TRANSCODING.RESOLUTIONS[ '360p' ], 305 '360p': CONFIG.TRANSCODING.RESOLUTIONS[ '360p' ],
305 '480p': CONFIG.TRANSCODING.RESOLUTIONS[ '480p' ], 306 '480p': CONFIG.TRANSCODING.RESOLUTIONS[ '480p' ],
@@ -356,6 +357,7 @@ function convertCustomConfigBody (body: CustomConfig) {
356 function keyConverter (k: string) { 357 function keyConverter (k: string) {
357 // Transcoding resolutions exception 358 // Transcoding resolutions exception
358 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
359 361
360 return snakeCase(k) 362 return snakeCase(k)
361 } 363 }