Add support to recognize srt and vtt as subtitles formats on the file table

This commit is contained in:
mfcar 2024-05-04 20:50:18 +01:00
parent 1a9aaf17a6
commit 2f515cc207
No known key found for this signature in database
3 changed files with 7 additions and 4 deletions

View file

@ -4,7 +4,8 @@ const SupportedFileTypes = {
ebook: ['epub', 'pdf', 'mobi', 'azw3', 'cbr', 'cbz'],
info: ['nfo'],
text: ['txt'],
metadata: ['opf', 'abs', 'xml', 'json']
metadata: ['opf', 'abs', 'xml', 'json'],
subtitle: ['srt', 'vtt']
}
const DownloadStatus = {
@ -82,4 +83,4 @@ export default ({ app }, inject) => {
inject('constants', Constants)
inject('keynames', KeyNames)
inject('hotkeys', Hotkeys)
}
}