diff options
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/activitypub/activitypub-actor.ts | 1 | ||||
-rw-r--r-- | shared/models/actors/account.model.ts | 1 | ||||
-rw-r--r-- | shared/models/actors/actor.model.ts | 1 | ||||
-rw-r--r-- | shared/models/server/custom-config.model.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-register.model.ts | 10 | ||||
-rw-r--r-- | shared/models/videos/channel/video-channel-update.model.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/channel/video-channel.model.ts | 1 | ||||
-rw-r--r-- | shared/models/videos/playlist/video-playlist-update.model.ts | 4 | ||||
-rw-r--r-- | shared/models/videos/video-resolution.enum.ts | 10 |
9 files changed, 23 insertions, 10 deletions
diff --git a/shared/models/activitypub/activitypub-actor.ts b/shared/models/activitypub/activitypub-actor.ts index 5e30bf783..53ec579bc 100644 --- a/shared/models/activitypub/activitypub-actor.ts +++ b/shared/models/activitypub/activitypub-actor.ts | |||
@@ -21,7 +21,6 @@ export interface ActivityPubActor { | |||
21 | attributedTo: ActivityPubAttributedTo[] | 21 | attributedTo: ActivityPubAttributedTo[] |
22 | 22 | ||
23 | support?: string | 23 | support?: string |
24 | uuid: string | ||
25 | publicKey: { | 24 | publicKey: { |
26 | id: string | 25 | id: string |
27 | owner: string | 26 | owner: string |
diff --git a/shared/models/actors/account.model.ts b/shared/models/actors/account.model.ts index 043a2507e..2ff4b9f5e 100644 --- a/shared/models/actors/account.model.ts +++ b/shared/models/actors/account.model.ts | |||
@@ -10,7 +10,6 @@ export interface Account extends Actor { | |||
10 | 10 | ||
11 | export interface AccountSummary { | 11 | export interface AccountSummary { |
12 | id: number | 12 | id: number |
13 | uuid: string | ||
14 | name: string | 13 | name: string |
15 | displayName: string | 14 | displayName: string |
16 | url: string | 15 | url: string |
diff --git a/shared/models/actors/actor.model.ts b/shared/models/actors/actor.model.ts index a3953874d..1dbf5f638 100644 --- a/shared/models/actors/actor.model.ts +++ b/shared/models/actors/actor.model.ts | |||
@@ -2,7 +2,6 @@ import { Avatar } from '../avatars/avatar.model' | |||
2 | 2 | ||
3 | export interface Actor { | 3 | export interface Actor { |
4 | id: number | 4 | id: number |
5 | uuid: string | ||
6 | url: string | 5 | url: string |
7 | name: string | 6 | name: string |
8 | host: string | 7 | host: string |
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts index ca52eff4b..4cc379b2a 100644 --- a/shared/models/server/custom-config.model.ts +++ b/shared/models/server/custom-config.model.ts | |||
@@ -54,6 +54,7 @@ export interface CustomConfig { | |||
54 | transcoding: { | 54 | transcoding: { |
55 | enabled: boolean | 55 | enabled: boolean |
56 | allowAdditionalExtensions: boolean | 56 | allowAdditionalExtensions: boolean |
57 | allowAudioFiles: boolean | ||
57 | threads: number | 58 | threads: number |
58 | resolutions: { | 59 | resolutions: { |
59 | '240p': boolean | 60 | '240p': boolean |
diff --git a/shared/models/users/user-register.model.ts b/shared/models/users/user-register.model.ts new file mode 100644 index 000000000..ce5c9c3d2 --- /dev/null +++ b/shared/models/users/user-register.model.ts | |||
@@ -0,0 +1,10 @@ | |||
1 | export interface UserRegister { | ||
2 | username: string | ||
3 | password: string | ||
4 | email: string | ||
5 | |||
6 | channel?: { | ||
7 | name: string | ||
8 | displayName: string | ||
9 | } | ||
10 | } | ||
diff --git a/shared/models/videos/channel/video-channel-update.model.ts b/shared/models/videos/channel/video-channel-update.model.ts index 3626ce8a9..8dde9188b 100644 --- a/shared/models/videos/channel/video-channel-update.model.ts +++ b/shared/models/videos/channel/video-channel-update.model.ts | |||
@@ -1,5 +1,7 @@ | |||
1 | export interface VideoChannelUpdate { | 1 | export interface VideoChannelUpdate { |
2 | displayName: string | 2 | displayName?: string |
3 | description?: string | 3 | description?: string |
4 | support?: string | 4 | support?: string |
5 | |||
6 | bulkVideosSupportUpdate?: boolean | ||
5 | } | 7 | } |
diff --git a/shared/models/videos/channel/video-channel.model.ts b/shared/models/videos/channel/video-channel.model.ts index 14a813f8f..de4c26b3d 100644 --- a/shared/models/videos/channel/video-channel.model.ts +++ b/shared/models/videos/channel/video-channel.model.ts | |||
@@ -12,7 +12,6 @@ export interface VideoChannel extends Actor { | |||
12 | 12 | ||
13 | export interface VideoChannelSummary { | 13 | export interface VideoChannelSummary { |
14 | id: number | 14 | id: number |
15 | uuid: string | ||
16 | name: string | 15 | name: string |
17 | displayName: string | 16 | displayName: string |
18 | url: string | 17 | url: string |
diff --git a/shared/models/videos/playlist/video-playlist-update.model.ts b/shared/models/videos/playlist/video-playlist-update.model.ts index 0ff5bcb0f..a6a3f74d9 100644 --- a/shared/models/videos/playlist/video-playlist-update.model.ts +++ b/shared/models/videos/playlist/video-playlist-update.model.ts | |||
@@ -1,8 +1,8 @@ | |||
1 | import { VideoPlaylistPrivacy } from './video-playlist-privacy.model' | 1 | import { VideoPlaylistPrivacy } from './video-playlist-privacy.model' |
2 | 2 | ||
3 | export interface VideoPlaylistUpdate { | 3 | export interface VideoPlaylistUpdate { |
4 | displayName: string | 4 | displayName?: string |
5 | privacy: VideoPlaylistPrivacy | 5 | privacy?: VideoPlaylistPrivacy |
6 | 6 | ||
7 | description?: string | 7 | description?: string |
8 | videoChannelId?: number | 8 | videoChannelId?: number |
diff --git a/shared/models/videos/video-resolution.enum.ts b/shared/models/videos/video-resolution.enum.ts index 7da5e7100..51efa2e8b 100644 --- a/shared/models/videos/video-resolution.enum.ts +++ b/shared/models/videos/video-resolution.enum.ts | |||
@@ -5,7 +5,8 @@ export enum VideoResolution { | |||
5 | H_360P = 360, | 5 | H_360P = 360, |
6 | H_480P = 480, | 6 | H_480P = 480, |
7 | H_720P = 720, | 7 | H_720P = 720, |
8 | H_1080P = 1080 | 8 | H_1080P = 1080, |
9 | H_4K = 2160 | ||
9 | } | 10 | } |
10 | 11 | ||
11 | /** | 12 | /** |
@@ -33,11 +34,14 @@ function getBaseBitrate (resolution: VideoResolution) { | |||
33 | // quality according to Google Live Encoder: 1,500 - 4,000 Kbps | 34 | // quality according to Google Live Encoder: 1,500 - 4,000 Kbps |
34 | // Quality according to YouTube Video Info: 1752 Kbps | 35 | // Quality according to YouTube Video Info: 1752 Kbps |
35 | return 1750 * 1000 | 36 | return 1750 * 1000 |
36 | case VideoResolution.H_1080P: // fallthrough | 37 | case VideoResolution.H_1080P: |
37 | default: | ||
38 | // quality according to Google Live Encoder: 3000 - 6000 Kbps | 38 | // quality according to Google Live Encoder: 3000 - 6000 Kbps |
39 | // Quality according to YouTube Video Info: 3277 Kbps | 39 | // Quality according to YouTube Video Info: 3277 Kbps |
40 | return 3300 * 1000 | 40 | return 3300 * 1000 |
41 | case VideoResolution.H_4K: // fallthrough | ||
42 | default: | ||
43 | // quality according to Google Live Encoder: 13000 - 34000 Kbps | ||
44 | return 15000 * 1000 | ||
41 | } | 45 | } |
42 | } | 46 | } |
43 | 47 | ||