mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-27 01:01:59 +05:30
Remove unsupported formats from quality selector
This commit is contained in:
parent
2a4b643539
commit
20c0bff96d
@ -103,6 +103,15 @@ function toggle_comments(target) {
|
|||||||
body.style.display = '';
|
body.style.display = '';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var currentSources = player.currentSources();
|
||||||
|
for ( var i = 0; i < currentSources.length; i++ ) {
|
||||||
|
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
|
||||||
|
currentSources.splice(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
player.src(currentSources);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="h-box">
|
<div class="h-box">
|
||||||
|
Loading…
Reference in New Issue
Block a user