mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-21 00:22:08 +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) {
|
async function updatePeerCounts (entries) {
|
||||||
const id = crypto.randomUUID()
|
const id = Math.trunc(Math.random() * Number.MAX_SAFE_INTEGER).toString()
|
||||||
|
|
||||||
const updated = await Promise.race([
|
const updated = await Promise.race([
|
||||||
new Promise(resolve => {
|
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"')) {
|
if (!isDev && !video.canPlayType('audio/mp4; codecs="ac-3"')) {
|
||||||
exclusions.push('AC3', 'AC-3')
|
exclusions.push('AC3', 'AC-3')
|
||||||
}
|
}
|
||||||
|
if (!('audioTracks' in HTMLVideoElement.prototype)) {
|
||||||
|
exclusions.push('DUAL')
|
||||||
|
}
|
||||||
video.remove()
|
video.remove()
|
||||||
|
|
||||||
export function parseRSSNodes (nodes) {
|
export function parseRSSNodes (nodes) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue