mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-21 05:52:05 +00:00
oops, fix
This commit is contained in:
parent
288e3fc0be
commit
a16e8311cf
1 changed files with 2 additions and 2 deletions
|
|
@ -114,11 +114,11 @@ async function addTorrent(magnet, media, episode) {
|
||||||
})
|
})
|
||||||
if (videoFiles.length > 1) {
|
if (videoFiles.length > 1) {
|
||||||
bpl.removeAttribute("disabled")
|
bpl.removeAttribute("disabled")
|
||||||
videoFiles.filter(file => { parseInt(nameParseRegex.simple.exec(file.name)[4]) == parseInt(episode) })
|
buildVideo(videoFiles.filter(file => { parseInt(nameParseRegex.simple.exec(file.name)[4]) == parseInt(episode) })[0], [media, episode])
|
||||||
} else {
|
} else {
|
||||||
bpl.setAttribute("disabled", "")//playlist button hiding
|
bpl.setAttribute("disabled", "")//playlist button hiding
|
||||||
|
buildVideo(videoFiles[0], [media, episode])
|
||||||
}
|
}
|
||||||
buildVideo(videoFiles[0], [media, episode])
|
|
||||||
} else {
|
} else {
|
||||||
halfmoon.initStickyAlert({
|
halfmoon.initStickyAlert({
|
||||||
content: `Couldn't find video file for <span class="text-break">${torrent.infoHash}</span>!`,
|
content: `Couldn't find video file for <span class="text-break">${torrent.infoHash}</span>!`,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue