// ---------------------------------------------------------------------------
-const LAST_MIGRATION_VERSION = 70
+const LAST_MIGRATION_VERSION = 75
// ---------------------------------------------------------------------------
const SORTABLE_COLUMNS = {
USERS: [ 'id', 'username', 'createdAt' ],
VIDEO_ABUSES: [ 'id', 'createdAt' ],
- VIDEOS: [ 'name', 'duration', 'createdAt', 'views', 'likes' ]
+ VIDEOS: [ 'name', 'duration', 'createdAt', 'views', 'likes' ],
+ BLACKLISTS: [ 'id', 'name', 'duration', 'views', 'likes', 'dislikes', 'uuid', 'createdAt' ]
}
const OAUTH_LIFETIME = {
},
SIGNUP: {
ENABLED: config.get<boolean>('signup.enabled'),
- LIMIT: config.get<number>('signup.limit'),
+ LIMIT: config.get<number>('signup.limit')
},
USER: {
VIDEO_QUOTA: config.get<number>('user.video_quota')
},
TRANSCODING: {
ENABLED: config.get<boolean>('transcoding.enabled'),
- THREADS: config.get<number>('transcoding.threads')
+ THREADS: config.get<number>('transcoding.threads'),
+ RESOLUTIONS: {
+ '240' : config.get<boolean>('transcoding.resolutions.240p'),
+ '360': config.get<boolean>('transcoding.resolutions.360p'),
+ '480': config.get<boolean>('transcoding.resolutions.480p'),
+ '720': config.get<boolean>('transcoding.resolutions.720p'),
+ '1080': config.get<boolean>('transcoding.resolutions.1080p')
+ }
},
CACHE: {
PREVIEWS: {
NAME: { min: 3, max: 50 }, // Length
DESCRIPTION: { min: 3, max: 250 }, // Length
EXTNAME: [ '.mp4', '.ogv', '.webm' ],
- INFO_HASH: { min: 40, max: 40 }, // Length, infohash is 20 bytes length but we represent it in hexa so 20 * 2
+ INFO_HASH: { min: 40, max: 40 }, // Length, info hash is 20 bytes length but we represent it in hexadecimal so 20 * 2
DURATION: { min: 1, max: 7200 }, // Number
TAGS: { min: 0, max: 3 }, // Number of total tags
TAG: { min: 2, max: 10 }, // Length
9: 'Comedy',
10: 'Entertainment',
11: 'News',
- 12: 'Howto',
+ 12: 'How To',
13: 'Education',
14: 'Activism',
15: 'Science & Technology',
11: 'German',
12: 'Korean',
13: 'French',
- 14: 'Italien'
-}
-
-const VIDEO_FILE_RESOLUTIONS = {
- 0: 'original',
- 1: '360p',
- 2: '480p',
- 3: '720p',
- 4: '1080p'
+ 14: 'Italian'
}
// ---------------------------------------------------------------------------
// Number of points we add/remove from a friend after a successful/bad request
const PODS_SCORE = {
- MALUS: -10,
+ PENALTY: -10,
BONUS: 10
}
const THUMBNAILS_SIZE = '200x110'
const PREVIEWS_SIZE = '640x480'
-// Subfolders of cache directory
+// Sub folders of cache directory
const CACHE = {
DIRECTORIES: {
PREVIEWS: join(CONFIG.STORAGE.CACHE_DIR, 'previews')
// ---------------------------------------------------------------------------
-const OPENGRAPH_COMMENT = '<!-- opengraph tags -->'
+const OPENGRAPH_COMMENT = '<!-- open graph tags -->'
// ---------------------------------------------------------------------------
THUMBNAILS_SIZE,
USER_ROLES,
VIDEO_CATEGORIES,
- VIDEO_FILE_RESOLUTIONS,
VIDEO_LANGUAGES,
VIDEO_LICENCES,
VIDEO_RATE_TYPES