mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-28 12:58:51 +00:00
fix: exclude dual audio if not supported
fix: dont use crypto for UUID
This commit is contained in:
parent
eb21eff4cf
commit
ec9d9ab28c
2 changed files with 4 additions and 1 deletions
|
|
@ -47,7 +47,7 @@ export default async function getResultsFromExtensions ({ media, episode, batch,
|
|||
}
|
||||
|
||||
async function updatePeerCounts (entries) {
|
||||
const id = crypto.randomUUID()
|
||||
const id = Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString()
|
||||
|
||||
const updated = await Promise.race([
|
||||
new Promise(resolve => {
|
||||
|
|
|
|||
|
|
@ -18,6 +18,9 @@ if (!isDev && !video.canPlayType('video/mp4; codecs="hev1.1.6.L93.B0"')) {
|
|||
if (!isDev && !video.canPlayType('audio/mp4; codecs="ac-3"')) {
|
||||
exclusions.push('AC3', 'AC-3')
|
||||
}
|
||||
if (!('audioTracks' in HTMLVideoElement.prototype)) {
|
||||
exclusions.push('DUAL')
|
||||
}
|
||||
video.remove()
|
||||
|
||||
export function parseRSSNodes (nodes) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue