diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:21:13 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-11 09:21:13 +0200 |
commit | 784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428 (patch) | |
tree | 29c46cfd6344065eb805680ed080cb05592ee1d4 /shared/server-commands/videos | |
parent | c3030e944ad03c7fd7b5d668a2d88ff03e4cdf19 (diff) | |
download | PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.tar.gz PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.tar.zst PeerTube-784e2ad5c34bcfef36a3f69e9e9acd7cbb3d6428.zip |
Prefer web videos in favour of webtorrent
Diffstat (limited to 'shared/server-commands/videos')
-rw-r--r-- | shared/server-commands/videos/videos-command.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shared/server-commands/videos/videos-command.ts b/shared/server-commands/videos/videos-command.ts index 93ca623e1..9602fa7da 100644 --- a/shared/server-commands/videos/videos-command.ts +++ b/shared/server-commands/videos/videos-command.ts | |||
@@ -686,10 +686,10 @@ export class VideosCommand extends AbstractCommand { | |||
686 | }) | 686 | }) |
687 | } | 687 | } |
688 | 688 | ||
689 | removeAllWebTorrentFiles (options: OverrideCommandOptions & { | 689 | removeAllWebVideoFiles (options: OverrideCommandOptions & { |
690 | videoId: number | string | 690 | videoId: number | string |
691 | }) { | 691 | }) { |
692 | const path = '/api/v1/videos/' + options.videoId + '/webtorrent' | 692 | const path = '/api/v1/videos/' + options.videoId + '/web-videos' |
693 | 693 | ||
694 | return this.deleteRequest({ | 694 | return this.deleteRequest({ |
695 | ...options, | 695 | ...options, |
@@ -700,11 +700,11 @@ export class VideosCommand extends AbstractCommand { | |||
700 | }) | 700 | }) |
701 | } | 701 | } |
702 | 702 | ||
703 | removeWebTorrentFile (options: OverrideCommandOptions & { | 703 | removeWebVideoFile (options: OverrideCommandOptions & { |
704 | videoId: number | string | 704 | videoId: number | string |
705 | fileId: number | 705 | fileId: number |
706 | }) { | 706 | }) { |
707 | const path = '/api/v1/videos/' + options.videoId + '/webtorrent/' + options.fileId | 707 | const path = '/api/v1/videos/' + options.videoId + '/web-videos/' + options.fileId |
708 | 708 | ||
709 | return this.deleteRequest({ | 709 | return this.deleteRequest({ |
710 | ...options, | 710 | ...options, |
@@ -717,7 +717,7 @@ export class VideosCommand extends AbstractCommand { | |||
717 | 717 | ||
718 | runTranscoding (options: OverrideCommandOptions & { | 718 | runTranscoding (options: OverrideCommandOptions & { |
719 | videoId: number | string | 719 | videoId: number | string |
720 | transcodingType: 'hls' | 'webtorrent' | 720 | transcodingType: 'hls' | 'webtorrent' | 'web-video' |
721 | }) { | 721 | }) { |
722 | const path = '/api/v1/videos/' + options.videoId + '/transcoding' | 722 | const path = '/api/v1/videos/' + options.videoId + '/transcoding' |
723 | 723 | ||