]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - shared/server-commands/server/config-command.ts
Completely remove best default trending algorithm
[github/Chocobozzz/PeerTube.git] / shared / server-commands / server / config-command.ts
index 1dd6e1ea4bda766180007841b5c0224305bb5d93..5320dead4705bfe42cbba88d944ce33e1a4174f8 100644 (file)
@@ -60,7 +60,7 @@ export class ConfigCommand extends AbstractCommand {
         transcoding: {
           enabled: false
         },
-        videoEditor: {
+        videoStudio: {
           enabled: false
         }
       }
@@ -111,6 +111,16 @@ export class ConfigCommand extends AbstractCommand {
     })
   }
 
+  enableStudio () {
+    return this.updateExistingSubConfig({
+      newConfig: {
+        videoStudio: {
+          enabled: true
+        }
+      }
+    })
+  }
+
   getConfig (options: OverrideCommandOptions = {}) {
     const path = '/api/v1/config'
 
@@ -329,7 +339,7 @@ export class ConfigCommand extends AbstractCommand {
           }
         }
       },
-      videoEditor: {
+      videoStudio: {
         enabled: false
       },
       import: {
@@ -346,7 +356,7 @@ export class ConfigCommand extends AbstractCommand {
       trending: {
         videos: {
           algorithms: {
-            enabled: [ 'best', 'hot', 'most-viewed', 'most-liked' ],
+            enabled: [ 'hot', 'most-viewed', 'most-liked' ],
             default: 'hot'
           }
         }