X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Finitializers%2Fconstants.ts;h=171e9e9c2496294e07d28939ec95e74f18270250;hb=2cfd3b7eb945063242459bfb26cd654cd5938891;hp=ebbdba262957cde3249afa51296ae8f3b8e0ce6e;hpb=30bc55c88b3b7416c2224925e88639694fd32746;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index ebbdba262..171e9e9c2 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -23,7 +23,7 @@ import { CONFIG, registerConfigChangedHandler } from './config' // --------------------------------------------------------------------------- -const LAST_MIGRATION_VERSION = 525 +const LAST_MIGRATION_VERSION = 530 // --------------------------------------------------------------------------- @@ -417,7 +417,9 @@ const MIMETYPES = { 'audio/x-ms-wma': '.wma', 'audio/wav': '.wav', 'audio/x-flac': '.flac', - 'audio/flac': '.flac' + 'audio/flac': '.flac', + '‎audio/aac': '.aac', + 'audio/ac3': '.ac3' }, EXT_MIMETYPE: null as { [ id: string ]: string } }, @@ -543,8 +545,8 @@ const STATIC_DOWNLOAD_PATHS = { } const LAZY_STATIC_PATHS = { AVATARS: '/lazy-static/avatars/', - PREVIEWS: '/static/previews/', - VIDEO_CAPTIONS: '/static/video-captions/' + PREVIEWS: '/lazy-static/previews/', + VIDEO_CAPTIONS: '/lazy-static/video-captions/' } // Cache control @@ -841,7 +843,7 @@ function buildVideoMimetypeExt () { 'video/x-matroska': '.mkv', // Developed by Apple - 'video/quicktime': '.mov', // often used as output format by editing software + 'video/quicktime': [ '.mov', '.qt', '.mqv' ], // often used as output format by editing software 'video/x-m4v': '.m4v', 'video/m4v': '.m4v', @@ -856,8 +858,8 @@ function buildVideoMimetypeExt () { // Developed by 3GPP // common video formats for cell phones - 'video/3gpp': '.3gp', - 'video/3gpp2': '.3g2', + 'video/3gpp': [ '.3gp', '.3gpp' ], + 'video/3gpp2': [ '.3g2', '.3gpp2' ], // Developed by FFmpeg/Mplayer 'application/x-nut': '.nut', @@ -870,7 +872,8 @@ function buildVideoMimetypeExt () { // Old formats reliant on MPEG-1/MPEG-2 'video/mpv': '.mpv', 'video/mpeg2': '.m2v', - 'video/mpeg': '.mpeg', + 'video/mpeg': [ '.m1v', '.mpg', '.mpe', '.mpeg', '.vob' ], + 'video/dvd': '.vob', // Could be anything 'application/octet-stream': null, @@ -953,7 +956,9 @@ function buildLanguages () { jsl: true, // Japanese sign language sfs: true, // South African sign language swl: true, // Swedish sign language - rsl: true, // Russian sign language: true + rsl: true, // Russian sign language + + kab: true, // Kabyle epo: true, // Esperanto tlh: true, // Klingon