From 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 11 Jul 2023 09:21:13 +0200 Subject: Prefer web videos in favour of webtorrent --- shared/server-commands/server/config-command.ts | 8 ++++---- shared/server-commands/server/servers-command.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'shared/server-commands/server') diff --git a/shared/server-commands/server/config-command.ts b/shared/server-commands/server/config-command.ts index 114db8091..00dc8e11c 100644 --- a/shared/server-commands/server/config-command.ts +++ b/shared/server-commands/server/config-command.ts @@ -131,7 +131,7 @@ export class ConfigCommand extends AbstractCommand { } // TODO: convert args to object - enableTranscoding (webtorrent = true, hls = true, with0p = false) { + enableTranscoding (webVideo = true, hls = true, with0p = false) { return this.updateExistingSubConfig({ newConfig: { transcoding: { @@ -143,7 +143,7 @@ export class ConfigCommand extends AbstractCommand { resolutions: ConfigCommand.getCustomConfigResolutions(true, with0p), webtorrent: { - enabled: webtorrent + enabled: webVideo }, hls: { enabled: hls @@ -154,7 +154,7 @@ export class ConfigCommand extends AbstractCommand { } // TODO: convert args to object - enableMinimumTranscoding (webtorrent = true, hls = true) { + enableMinimumTranscoding (webVideo = true, hls = true) { return this.updateExistingSubConfig({ newConfig: { transcoding: { @@ -170,7 +170,7 @@ export class ConfigCommand extends AbstractCommand { }, webtorrent: { - enabled: webtorrent + enabled: webVideo }, hls: { enabled: hls diff --git a/shared/server-commands/server/servers-command.ts b/shared/server-commands/server/servers-command.ts index 19645cb93..4e66a900c 100644 --- a/shared/server-commands/server/servers-command.ts +++ b/shared/server-commands/server/servers-command.ts @@ -77,7 +77,7 @@ export class ServersCommand extends AbstractCommand { return join(root(), 'test' + this.server.internalServerNumber, directory) } - buildWebTorrentFilePath (fileUrl: string) { + buildWebVideoFilePath (fileUrl: string) { return this.buildDirectory(join('videos', basename(fileUrl))) } -- cgit v1.2.3