mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 10:28:18 -07:00
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:
commit
5a3fb092ff
@ -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);
|
||||
});
|
||||
|
@ -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 />
|
||||
|
Loading…
Reference in New Issue
Block a user