0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -05:00

Remove undefined audio only quality from quality list

This commit is contained in:
dragongoose 2023-08-21 23:56:36 -04:00
parent 125369c3d4
commit 1af39b935e
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5

View file

@ -79,6 +79,12 @@ export const createQualitySelector = (player: any) => {
}
})
// remove audio only
const audioOnlyQuality = formatedQualities[formatedQualities.length-1]
if (audioOnlyQuality.name === "undefinedp") {
formatedQualities.splice(formatedQualities.length-1, 1)
}
formattedLevels.push(formatedQualities)
updateLevels()
})