fix: exclude dual audio if not supported

fix: dont use crypto for UUID
This commit is contained in:
ThaUnknown 2024-07-01 00:54:02 +02:00
parent eb21eff4cf
commit ec9d9ab28c
2 changed files with 4 additions and 1 deletions

View file

@ -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 => {

View file

@ -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) {