mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-04-18 03:41:30 +00:00
perf: canvas subtitle size
fix: empty entries
This commit is contained in:
parent
e1d661f623
commit
4ca131d3ee
3 changed files with 7 additions and 8 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Miru",
|
||||
"version": "4.3.0",
|
||||
"version": "4.3.1",
|
||||
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
|
||||
"description": "Stream anime torrents, real-time with no waiting for downloads.",
|
||||
"main": "build/main.js",
|
||||
|
|
|
|||
|
|
@ -372,7 +372,11 @@
|
|||
canvasVideo.onloadedmetadata = () => {
|
||||
canvasVideo.play()
|
||||
if (pip) {
|
||||
canvasVideo.requestPictureInPicture().catch(e => {
|
||||
canvasVideo.requestPictureInPicture().then(pipwindow => {
|
||||
pipwindow.onresize = () => {
|
||||
subs.renderer.resize(pipwindow.width, pipwindow.height)
|
||||
}
|
||||
}).catch(e => {
|
||||
cleanup()
|
||||
console.warn('Failed To Burn In Subtitles ' + e)
|
||||
})
|
||||
|
|
|
|||
|
|
@ -83,12 +83,7 @@
|
|||
}
|
||||
|
||||
})
|
||||
let entries
|
||||
try {
|
||||
entries = await promise
|
||||
} catch (e) {
|
||||
return e
|
||||
}
|
||||
const entries = await promise
|
||||
|
||||
entries.sort((a, b) => b.seeders - a.seeders)
|
||||
if (settings.rssAutoplay) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue