diff options
author | Chocobozzz <me@florianbigard.com> | 2019-03-05 10:58:44 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-03-18 11:17:59 +0100 |
commit | df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa (patch) | |
tree | c4984e854f5dc18e5c27afd73b843bd52c143034 /server/initializers/constants.ts | |
parent | 07b1a18aa678d260009a93e36606c5c5f585723d (diff) | |
download | PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.gz PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.tar.zst PeerTube-df0b219d36bf6852cdf2a7ad09ed4a41c6bccefa.zip |
Add playlist rest tests
Diffstat (limited to 'server/initializers/constants.ts')
-rw-r--r-- | server/initializers/constants.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index 154a9cffe..59c30fdee 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts | |||
@@ -11,6 +11,7 @@ import { invert } from 'lodash' | |||
11 | import { CronRepeatOptions, EveryRepeatOptions } from 'bull' | 11 | import { CronRepeatOptions, EveryRepeatOptions } from 'bull' |
12 | import * as bytes from 'bytes' | 12 | import * as bytes from 'bytes' |
13 | import { VideoPlaylistPrivacy } from '../../shared/models/videos/playlist/video-playlist-privacy.model' | 13 | import { VideoPlaylistPrivacy } from '../../shared/models/videos/playlist/video-playlist-privacy.model' |
14 | import { VideoPlaylistType } from '../../shared/models/videos/playlist/video-playlist-type.model' | ||
14 | 15 | ||
15 | // Use a variable to reload the configuration if we need | 16 | // Use a variable to reload the configuration if we need |
16 | let config: IConfig = require('config') | 17 | let config: IConfig = require('config') |
@@ -522,6 +523,11 @@ const VIDEO_PLAYLIST_PRIVACIES = { | |||
522 | [VideoPlaylistPrivacy.PRIVATE]: 'Private' | 523 | [VideoPlaylistPrivacy.PRIVATE]: 'Private' |
523 | } | 524 | } |
524 | 525 | ||
526 | const VIDEO_PLAYLIST_TYPES = { | ||
527 | [VideoPlaylistType.REGULAR]: 'Regular', | ||
528 | [VideoPlaylistType.WATCH_LATER]: 'Watch later' | ||
529 | } | ||
530 | |||
525 | const MIMETYPES = { | 531 | const MIMETYPES = { |
526 | VIDEO: { | 532 | VIDEO: { |
527 | MIMETYPE_EXT: buildVideoMimetypeExt(), | 533 | MIMETYPE_EXT: buildVideoMimetypeExt(), |
@@ -778,6 +784,7 @@ export { | |||
778 | STATIC_MAX_AGE, | 784 | STATIC_MAX_AGE, |
779 | STATIC_PATHS, | 785 | STATIC_PATHS, |
780 | VIDEO_IMPORT_TIMEOUT, | 786 | VIDEO_IMPORT_TIMEOUT, |
787 | VIDEO_PLAYLIST_TYPES, | ||
781 | ACTIVITY_PUB, | 788 | ACTIVITY_PUB, |
782 | ACTIVITY_PUB_ACTOR_TYPES, | 789 | ACTIVITY_PUB_ACTOR_TYPES, |
783 | THUMBNAILS_SIZE, | 790 | THUMBNAILS_SIZE, |