},
captions: {
size: 3
+ },
+ torrents: {
+ size: 4
}
},
signup: {
allowAdditionalExtensions: true,
allowAudioFiles: true,
threads: 1,
+ concurrency: 3,
profile: 'default',
resolutions: {
'0p': false,
},
import: {
videos: {
+ concurrency: 3,
http: {
enabled: false
},
return updateCustomConfig(url, token, updateParams)
}
+function getCustomConfigResolutions (enabled: boolean) {
+ return {
+ '240p': enabled,
+ '360p': enabled,
+ '480p': enabled,
+ '720p': enabled,
+ '1080p': enabled,
+ '1440p': enabled,
+ '2160p': enabled
+ }
+}
+
function deleteCustomConfig (url: string, token: string, statusCodeExpected = HttpStatusCode.OK_200) {
const path = '/api/v1/config/custom'
updateCustomConfig,
getAbout,
deleteCustomConfig,
- updateCustomSubConfig
+ updateCustomSubConfig,
+ getCustomConfigResolutions
}