Support text/plain caption files
authorChocobozzz <me@florianbigard.com>
Fri, 18 Oct 2019 08:36:32 +0000 (10:36 +0200)
committerChocobozzz <me@florianbigard.com>
Fri, 18 Oct 2019 08:36:32 +0000 (10:36 +0200)
server/initializers/constants.ts

index 332b57cf2e79ae2ee7a23bc5adfabc5c2eecc966..0e06496bc6a719b811a80ac2ba73cbcdb3fbeece 100644 (file)
@@ -410,7 +410,8 @@ const MIMETYPES = {
   VIDEO_CAPTIONS: {
     MIMETYPE_EXT: {
       'text/vtt': '.vtt',
-      'application/x-subrip': '.srt'
+      'application/x-subrip': '.srt',
+      'text/plain': '.srt'
     }
   },
   TORRENT: {