aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers/constants.js')
-rw-r--r--server/initializers/constants.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/initializers/constants.js b/server/initializers/constants.js
index 7fcf5b01b..467816f2c 100644
--- a/server/initializers/constants.js
+++ b/server/initializers/constants.js
@@ -40,6 +40,10 @@ const SEARCHABLE_COLUMNS = {
40 VIDEOS: [ 'name', 'magnetUri', 'podUrl', 'author', 'tags' ] 40 VIDEOS: [ 'name', 'magnetUri', 'podUrl', 'author', 'tags' ]
41} 41}
42 42
43// Seeds in parallel we send to electron when "seed all"
44// Once a video is in seeding state we seed another video etc
45const SEEDS_IN_PARALLEL = 3
46
43// Sortable columns per schema 47// Sortable columns per schema
44const SORTABLE_COLUMNS = { 48const SORTABLE_COLUMNS = {
45 VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ] 49 VIDEOS: [ 'name', '-name', 'duration', '-duration', 'createdDate', '-createdDate' ]
@@ -83,6 +87,7 @@ module.exports = {
83 REQUESTS_LIMIT: REQUESTS_LIMIT, 87 REQUESTS_LIMIT: REQUESTS_LIMIT,
84 RETRY_REQUESTS: RETRY_REQUESTS, 88 RETRY_REQUESTS: RETRY_REQUESTS,
85 SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS, 89 SEARCHABLE_COLUMNS: SEARCHABLE_COLUMNS,
90 SEEDS_IN_PARALLEL: SEEDS_IN_PARALLEL,
86 SORTABLE_COLUMNS: SORTABLE_COLUMNS, 91 SORTABLE_COLUMNS: SORTABLE_COLUMNS,
87 THUMBNAILS_SIZE: THUMBNAILS_SIZE, 92 THUMBNAILS_SIZE: THUMBNAILS_SIZE,
88 THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH, 93 THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH,