Merge pull request #4941 from valius/add-mks-support-subtitle-uploader

Add mks file support to subtitle uploader component and template
This commit is contained in:
Bill Thornton 2023-11-29 12:26:23 -05:00 committed by GitHub
commit 5a3fb092ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ function onFileReaderError(evt) {
}
function isValidSubtitleFile(file) {
return file && ['.sub', '.srt', '.vtt', '.ass', '.ssa']
return file && ['.sub', '.srt', '.vtt', '.ass', '.ssa', '.mks']
.some(function(ext) {
return file.name.endsWith(ext);
});

View File

@ -22,7 +22,7 @@
<div class="subtitleEditor-dropZone fieldDescription">
<div id="labelDropSubtitle">${LabelDropSubtitleHere}</div>
<output id="subtitleOutput" class="flex align-items-center justify-content-center" style="position: absolute;top:0;left:0;right:0;bottom:0;width:100%;"></output>
<input type="file" accept=".sub,.srt,.vtt,.ass,.ssa" id="uploadSubtitle" name="uploadSubtitle" style="position: absolute;top:0;left:0;right:0;bottom:0;width:100%;opacity:0;"/>
<input type="file" accept=".sub,.srt,.vtt,.ass,.ssa,.mks" id="uploadSubtitle" name="uploadSubtitle" style="position: absolute;top:0;left:0;right:0;bottom:0;width:100%;opacity:0;"/>
</div>
<div id="fldUpload" class="hide">
<br />