mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-29 05:48:48 +00:00
more fixes from bad copy-pasting
This commit is contained in:
parent
abdc983083
commit
ea6c618d08
1 changed files with 4 additions and 3 deletions
|
|
@ -125,15 +125,16 @@ async function buildVideo(torrent, opts) { // sets video source and creates a bu
|
|||
}
|
||||
setTimeout(playerData.onProgress, 100)
|
||||
}
|
||||
|
||||
console.log(opts)
|
||||
setTimeout(playerData.onProgress, 100)
|
||||
if (opts.media) {
|
||||
playerData.nowPlaying = [opts.media, opts.episode]
|
||||
navNowPlaying.classList.remove("d-none")
|
||||
} else { // try to resolve name
|
||||
let mediaInformation = resolveFileMedia({ fileName: selectedFile.name, method: "SearchName" })
|
||||
let mediaInformation = await resolveFileMedia({ fileName: selectedFile.name, method: "SearchName" })
|
||||
console.log(mediaInformation)
|
||||
if (mediaInformation.media) {
|
||||
playerData.nowPlaying = [mediaInformation.media, mediaInformation.parseObject.episode]
|
||||
playerData.nowPlaying = [mediaInformation.media, mediaInformation.parseObject.episode_number]
|
||||
navNowPlaying.classList.remove("d-none")
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue