From 6a94a109b4b89a97fe7bfeded3125fb7aad2ac3b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 11 Nov 2016 11:52:24 +0100 Subject: Server: add video preview --- server/initializers/constants.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server/initializers/constants.js') diff --git a/server/initializers/constants.js b/server/initializers/constants.js index d345776ff..a50eb2f66 100644 --- a/server/initializers/constants.js +++ b/server/initializers/constants.js @@ -44,6 +44,7 @@ const CONFIG = { LOG_DIR: path.join(__dirname, '..', '..', config.get('storage.logs')), VIDEOS_DIR: path.join(__dirname, '..', '..', config.get('storage.videos')), THUMBNAILS_DIR: path.join(__dirname, '..', '..', config.get('storage.thumbnails')), + PREVIEWS_DIR: path.join(__dirname, '..', '..', config.get('storage.previews')), TORRENTS_DIR: path.join(__dirname, '..', '..', config.get('storage.torrents')) }, WEBSERVER: { @@ -135,6 +136,7 @@ const BCRYPT_SALT_SIZE = 10 // Express static paths (router) const STATIC_PATHS = { + PREVIEWS: '/static/previews', THUMBNAILS: '/static/thumbnails', TORRENTS: '/static/torrents/', WEBSEED: '/static/webseed/' @@ -145,6 +147,7 @@ let STATIC_MAX_AGE = '30d' // Videos thumbnail size const THUMBNAILS_SIZE = '200x110' +const PREVIEWS_SIZE = '640x480' const USER_ROLES = { ADMIN: 'admin', @@ -179,6 +182,7 @@ module.exports = { REQUESTS_INTERVAL, REQUESTS_LIMIT, RETRY_REQUESTS, + PREVIEWS_SIZE, SEARCHABLE_COLUMNS, SORTABLE_COLUMNS, STATIC_MAX_AGE, -- cgit v1.2.3