VIDEO_IMPORTS: {
URL: { min: 3, max: 2000 }, // Length
TORRENT_NAME: { min: 3, max: 255 }, // Length
+ TORRENT_FILE: {
+ EXTNAME: [ '.torrent' ],
+ FILE_SIZE: {
+ max: 1024 * 200 // 200 KB
+ }
+ }
},
VIDEOS: {
NAME: { min: 3, max: 120 }, // Length
'application/x-subrip': '.srt'
}
+const TORRENT_MIMETYPE_EXT = {
+ 'application/x-bittorrent': '.torrent'
+}
+
// ---------------------------------------------------------------------------
const SERVER_ACTOR_NAME = 'peertube'
FEEDS,
JOB_TTL,
NSFW_POLICY_TYPES,
+ TORRENT_MIMETYPE_EXT,
STATIC_MAX_AGE,
STATIC_PATHS,
ACTIVITY_PUB,