fix: update matroska-subtitles, fixes seeking on NC-Raws and ASW releases

This commit is contained in:
ThaUnknown 2022-12-25 18:26:12 +01:00
parent 920e672d17
commit e8086c65ee
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "3.3.7",
"version": "3.3.8",
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
"main": "src/index.js",

View file

@ -112,8 +112,8 @@ class TorrentClient extends WebTorrent {
if (data.data) {
this.current = this?.get(data.data.infoHash)?.files.find(file => file.path === data.data.path)
if (this.current?.name.endsWith('.mkv')) {
if (this.current.done) this.parseSubtitles()
this.current.once('done', this.boundParse)
// if (this.current.done) this.parseSubtitles()
// this.current.once('done', this.boundParse)
this.parseFonts(this.current)
}
// TODO: findSubtitleFiles(current)

View file

@ -12,7 +12,7 @@
const settings = set
const exclusions = ['DTS', '[ASW]']
const exclusions = ['DTS']
function binarySearch (arr, el) {
let left = 0