* yeah
This commit is contained in:
parent
abaab8dcf0
commit
f6905e241f
|
@ -32,7 +32,7 @@ window.addEventListener('DOMContentLoaded', (event) => {
|
||||||
if (videoFormat == null) {
|
if (videoFormat == null) {
|
||||||
videoFormat = formats.find((fmt) => fmt.vcodec !== 'none');
|
videoFormat = formats.find((fmt) => fmt.vcodec !== 'none');
|
||||||
}
|
}
|
||||||
const audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.format_id == localStorage.getItem("audioStream")) : null;
|
let audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.format_id == localStorage.getItem("audioStream")) : null;
|
||||||
if (audioFormat == null) {
|
if (audioFormat == null) {
|
||||||
audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.acodec !== 'none') : null;
|
audioFormat = videoFormat.acodec === 'none' ? formats.find((fmt) => fmt.acodec !== 'none') : null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue