mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00: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
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ function onFileReaderError(evt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isValidSubtitleFile(file) {
|
function isValidSubtitleFile(file) {
|
||||||
return file && ['.sub', '.srt', '.vtt', '.ass', '.ssa']
|
return file && ['.sub', '.srt', '.vtt', '.ass', '.ssa', '.mks']
|
||||||
.some(function(ext) {
|
.some(function(ext) {
|
||||||
return file.name.endsWith(ext);
|
return file.name.endsWith(ext);
|
||||||
});
|
});
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
<div class="subtitleEditor-dropZone fieldDescription">
|
<div class="subtitleEditor-dropZone fieldDescription">
|
||||||
<div id="labelDropSubtitle">${LabelDropSubtitleHere}</div>
|
<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>
|
<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>
|
||||||
<div id="fldUpload" class="hide">
|
<div id="fldUpload" class="hide">
|
||||||
<br />
|
<br />
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue