mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 18:29:27 +02:00
Refractoring and add thumbnails support (without tests)
This commit is contained in:
parent
f1dae01868
commit
cbe2f7c348
19 changed files with 312 additions and 162 deletions
|
@ -18,6 +18,12 @@ const PODS_SCORE = {
|
|||
// Number of retries we make for the make retry requests (to friends...)
|
||||
let REQUEST_RETRIES = 10
|
||||
|
||||
// Videos thumbnail size
|
||||
const THUMBNAILS_SIZE = '200x110'
|
||||
|
||||
// Path for access to thumbnails with express router
|
||||
const THUMBNAILS_STATIC_PATH = '/static/thumbnails'
|
||||
|
||||
// Special constants for a test instance
|
||||
if (isTestInstance() === true) {
|
||||
FRIEND_BASE_SCORE = 20
|
||||
|
@ -32,7 +38,9 @@ module.exports = {
|
|||
FRIEND_BASE_SCORE: FRIEND_BASE_SCORE,
|
||||
INTERVAL: INTERVAL,
|
||||
PODS_SCORE: PODS_SCORE,
|
||||
REQUEST_RETRIES: REQUEST_RETRIES
|
||||
REQUEST_RETRIES: REQUEST_RETRIES,
|
||||
THUMBNAILS_SIZE: THUMBNAILS_SIZE,
|
||||
THUMBNAILS_STATIC_PATH: THUMBNAILS_STATIC_PATH
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue