Skip to content

Commit

Permalink
fix: correct fix for androidTV crash
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaUnknown committed Feb 21, 2025
1 parent 4b44230 commit c21139a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 36 deletions.
4 changes: 3 additions & 1 deletion common/modules/subtitles.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,12 @@ export default class Subtitles {
workerUrl: new URL('jassub/dist/jassub-worker.js', import.meta.url).toString(),
wasmUrl: new URL('jassub/dist/jassub-worker.wasm', import.meta.url).toString(),
legacyWasmUrl: new URL('jassub/dist/jassub-worker.wasm.js', import.meta.url).toString(),
modernWasmUrl: settings.value.modernWasm ? new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).toString() : undefined,
modernWasmUrl: new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).toString(),
useLocalFonts: settings.value.missingFont,
dropAllBlur: settings.value.disableSubtitleBlur
}
// @ts-expect-error yeah, patching the library
if (SUPPORTS.isAndroid) JASSUB._hasBitmapBug = true
this.renderer = new JASSUB(options)
}
}
Expand Down
1 change: 0 additions & 1 deletion common/modules/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ export const defaults = {
torrentPathNew: undefined,
font: undefined,
angle: 'default',
modernWasm: true,
toshoURL: SUPPORTS.extensions ? decodeURIComponent(atob('aHR0cHM6Ly9mZWVkLmFuaW1ldG9zaG8ub3JnLw==')) : '',
extensions: SUPPORTS.extensions ? ['anisearch'] : [],
sources: {},
Expand Down
4 changes: 2 additions & 2 deletions common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"bottleneck": "^2.19.5",
"browser-event-target-emitter": "^1.0.1",
"comlink": "^4.4.1",
"jassub": "^1.7.17",
"jassub": "^1.7.18",
"js-levenshtein": "^1.1.6",
"lucide-svelte": "^0.429.0",
"p2pt": "github:ThaUnknown/p2pt#modernise",
Expand All @@ -26,4 +26,4 @@
"video-deband": "^1.0.5",
"webpack-merge": "^5.10.0"
}
}
}
6 changes: 0 additions & 6 deletions common/views/Settings/PlayerSettings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@
<option value='480'>480p</option>
</select>
</SettingCard>
<SettingCard title='Modern WASM Support' description='Forcefully override device WASM support. This can fix potential crash issues on some devices that incorrectly report WASM support. Turning this off will reduce performance when rendering complex subtitles.'>
<div class='custom-switch'>
<input type='checkbox' id='player-modernWasm' bind:checked={settings.modernWasm} />
<label for='player-modernWasm'>{settings.modernWasm ? 'On' : 'Off'}</label>
</div>
</SettingCard>

<h4 class='mb-10 font-weight-bold'>Language Settings</h4>
<SettingCard title='Preferred Subtitle Language' description="What subtitle language to automatically select when a video is loaded if it exists. This won't find torrents with this language automatically. If not found defaults to English.">
Expand Down
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.5.10",
"version": "5.5.11",
"private": true,
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
Expand Down
50 changes: 25 additions & 25 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c21139a

Please sign in to comment.