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/models | |
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/models')
-rw-r--r-- | shared/models/search/videos-common-query.model.ts | 4 | ||||
-rw-r--r-- | shared/models/server/job.model.ts | 12 | ||||
-rw-r--r-- | shared/models/users/user-update-me.model.ts | 2 | ||||
-rw-r--r-- | shared/models/users/user.model.ts | 2 | ||||
-rw-r--r-- | shared/models/videos/transcoding/video-transcoding-create.model.ts | 2 |
5 files changed, 10 insertions, 12 deletions
diff --git a/shared/models/search/videos-common-query.model.ts b/shared/models/search/videos-common-query.model.ts index da479c928..2c52ca8cf 100644 --- a/shared/models/search/videos-common-query.model.ts +++ b/shared/models/search/videos-common-query.model.ts | |||
@@ -30,7 +30,9 @@ export interface VideosCommonQuery { | |||
30 | tagsAllOf?: string[] | 30 | tagsAllOf?: string[] |
31 | 31 | ||
32 | hasHLSFiles?: boolean | 32 | hasHLSFiles?: boolean |
33 | hasWebtorrentFiles?: boolean | 33 | |
34 | hasWebtorrentFiles?: boolean // TODO: remove in v7 | ||
35 | hasWebVideoFiles?: boolean | ||
34 | 36 | ||
35 | skipCount?: boolean | 37 | skipCount?: boolean |
36 | 38 | ||
diff --git a/shared/models/server/job.model.ts b/shared/models/server/job.model.ts index 9c40079fb..c14806dab 100644 --- a/shared/models/server/job.model.ts +++ b/shared/models/server/job.model.ts | |||
@@ -148,17 +148,17 @@ export interface HLSTranscodingPayload extends BaseTranscodingPayload { | |||
148 | fps: number | 148 | fps: number |
149 | copyCodecs: boolean | 149 | copyCodecs: boolean |
150 | 150 | ||
151 | deleteWebTorrentFiles: boolean | 151 | deleteWebVideoFiles: boolean |
152 | } | 152 | } |
153 | 153 | ||
154 | export interface NewWebTorrentResolutionTranscodingPayload extends BaseTranscodingPayload { | 154 | export interface NewWebVideoResolutionTranscodingPayload extends BaseTranscodingPayload { |
155 | type: 'new-resolution-to-webtorrent' | 155 | type: 'new-resolution-to-web-video' |
156 | resolution: VideoResolution | 156 | resolution: VideoResolution |
157 | fps: number | 157 | fps: number |
158 | } | 158 | } |
159 | 159 | ||
160 | export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { | 160 | export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { |
161 | type: 'merge-audio-to-webtorrent' | 161 | type: 'merge-audio-to-web-video' |
162 | 162 | ||
163 | resolution: VideoResolution | 163 | resolution: VideoResolution |
164 | fps: number | 164 | fps: number |
@@ -167,7 +167,7 @@ export interface MergeAudioTranscodingPayload extends BaseTranscodingPayload { | |||
167 | } | 167 | } |
168 | 168 | ||
169 | export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { | 169 | export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { |
170 | type: 'optimize-to-webtorrent' | 170 | type: 'optimize-to-web-video' |
171 | 171 | ||
172 | quickTranscode: boolean | 172 | quickTranscode: boolean |
173 | 173 | ||
@@ -176,7 +176,7 @@ export interface OptimizeTranscodingPayload extends BaseTranscodingPayload { | |||
176 | 176 | ||
177 | export type VideoTranscodingPayload = | 177 | export type VideoTranscodingPayload = |
178 | HLSTranscodingPayload | 178 | HLSTranscodingPayload |
179 | | NewWebTorrentResolutionTranscodingPayload | 179 | | NewWebVideoResolutionTranscodingPayload |
180 | | OptimizeTranscodingPayload | 180 | | OptimizeTranscodingPayload |
181 | | MergeAudioTranscodingPayload | 181 | | MergeAudioTranscodingPayload |
182 | 182 | ||
diff --git a/shared/models/users/user-update-me.model.ts b/shared/models/users/user-update-me.model.ts index f3cceb5f2..c1d5ffba4 100644 --- a/shared/models/users/user-update-me.model.ts +++ b/shared/models/users/user-update-me.model.ts | |||
@@ -5,8 +5,6 @@ export interface UserUpdateMe { | |||
5 | description?: string | 5 | description?: string |
6 | nsfwPolicy?: NSFWPolicyType | 6 | nsfwPolicy?: NSFWPolicyType |
7 | 7 | ||
8 | // FIXME: deprecated in favour of p2pEnabled in 4.1 | ||
9 | webTorrentEnabled?: boolean | ||
10 | p2pEnabled?: boolean | 8 | p2pEnabled?: boolean |
11 | 9 | ||
12 | autoPlayVideo?: boolean | 10 | autoPlayVideo?: boolean |
diff --git a/shared/models/users/user.model.ts b/shared/models/users/user.model.ts index 0761c1e32..9de4118b4 100644 --- a/shared/models/users/user.model.ts +++ b/shared/models/users/user.model.ts | |||
@@ -22,8 +22,6 @@ export interface User { | |||
22 | autoPlayNextVideo: boolean | 22 | autoPlayNextVideo: boolean |
23 | autoPlayNextVideoPlaylist: boolean | 23 | autoPlayNextVideoPlaylist: boolean |
24 | 24 | ||
25 | // @deprecated in favour of p2pEnabled | ||
26 | webTorrentEnabled: boolean | ||
27 | p2pEnabled: boolean | 25 | p2pEnabled: boolean |
28 | 26 | ||
29 | videosHistoryEnabled: boolean | 27 | videosHistoryEnabled: boolean |
diff --git a/shared/models/videos/transcoding/video-transcoding-create.model.ts b/shared/models/videos/transcoding/video-transcoding-create.model.ts index aeb393e57..c6e756a0a 100644 --- a/shared/models/videos/transcoding/video-transcoding-create.model.ts +++ b/shared/models/videos/transcoding/video-transcoding-create.model.ts | |||
@@ -1,3 +1,3 @@ | |||
1 | export interface VideoTranscodingCreate { | 1 | export interface VideoTranscodingCreate { |
2 | transcodingType: 'hls' | 'webtorrent' | 2 | transcodingType: 'hls' | 'webtorrent' | 'web-video' // TODO: remove webtorrent in v7 |
3 | } | 3 | } |