diff options
Diffstat (limited to 'shared/server-commands/server/config-command.ts')
-rw-r--r-- | shared/server-commands/server/config-command.ts | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/shared/server-commands/server/config-command.ts b/shared/server-commands/server/config-command.ts index 7f1e9d977..3521b2d69 100644 --- a/shared/server-commands/server/config-command.ts +++ b/shared/server-commands/server/config-command.ts | |||
@@ -74,6 +74,28 @@ export class ConfigCommand extends AbstractCommand { | |||
74 | 74 | ||
75 | // --------------------------------------------------------------------------- | 75 | // --------------------------------------------------------------------------- |
76 | 76 | ||
77 | disableFileUpdate () { | ||
78 | return this.setFileUpdateEnabled(false) | ||
79 | } | ||
80 | |||
81 | enableFileUpdate () { | ||
82 | return this.setFileUpdateEnabled(true) | ||
83 | } | ||
84 | |||
85 | private setFileUpdateEnabled (enabled: boolean) { | ||
86 | return this.updateExistingSubConfig({ | ||
87 | newConfig: { | ||
88 | videoFile: { | ||
89 | update: { | ||
90 | enabled | ||
91 | } | ||
92 | } | ||
93 | } | ||
94 | }) | ||
95 | } | ||
96 | |||
97 | // --------------------------------------------------------------------------- | ||
98 | |||
77 | enableChannelSync () { | 99 | enableChannelSync () { |
78 | return this.setChannelSyncEnabled(true) | 100 | return this.setChannelSyncEnabled(true) |
79 | } | 101 | } |
@@ -466,6 +488,11 @@ export class ConfigCommand extends AbstractCommand { | |||
466 | enabled: false | 488 | enabled: false |
467 | } | 489 | } |
468 | }, | 490 | }, |
491 | videoFile: { | ||
492 | update: { | ||
493 | enabled: false | ||
494 | } | ||
495 | }, | ||
469 | import: { | 496 | import: { |
470 | videos: { | 497 | videos: { |
471 | concurrency: 3, | 498 | concurrency: 3, |