X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=shared%2Fextra-utils%2Fserver%2Fconfig.ts;h=8998da8b60000960b7dbe9c62dcc4db72c175f39;hb=1896bca09e088b0da9d5e845407ecebae330618c;hp=f7c488c0bbea34a49824391aa36e7fd847ff608c;hpb=b7085c713220c9c5a96c9bb77330c2ba6ae9274e;p=github%2FChocobozzz%2FPeerTube.git diff --git a/shared/extra-utils/server/config.ts b/shared/extra-utils/server/config.ts index f7c488c0b..8998da8b6 100644 --- a/shared/extra-utils/server/config.ts +++ b/shared/extra-utils/server/config.ts @@ -65,9 +65,11 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti languages: [ 'en', 'es' ], categories: [ 1, 2 ], - defaultClientRoute: '/videos/recently-added', isNSFW: true, defaultNSFWPolicy: 'blur', + + defaultClientRoute: '/videos/recently-added', + customizations: { javascript: 'alert("coucou")', css: 'body { background-color: red; }' @@ -110,6 +112,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti allowAdditionalExtensions: true, allowAudioFiles: true, threads: 1, + profile: 'default', resolutions: { '0p': false, '240p': false, @@ -136,6 +139,7 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti transcoding: { enabled: true, threads: 4, + profile: 'default', resolutions: { '240p': true, '360p': true, @@ -157,6 +161,14 @@ function updateCustomSubConfig (url: string, token: string, newConfig: DeepParti } } }, + trending: { + videos: { + algorithms: { + enabled: [ 'hot', 'most-viewed', 'most-liked' ], + default: 'hot' + } + } + }, autoBlacklist: { videos: { ofUsers: {