Skip to content

Invidious is an alternative front-end to YouTube

Don't filter sources for audio-only

Omar Roth99d299d62adb
diff --git a/src/views/watch.ecr b/src/views/watch.ecr
index 0b4ac8ef..88d8f53c 100644
--- a/src/views/watch.ecr
+++ b/src/views/watch.ecr
@@ -103,6 +103,7 @@ function toggle_comments(target) {
}
};
+<% if !listen %>
var currentSources = player.currentSources();
for ( var i = 0; i < currentSources.length; i++ ) {
if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") {
@@ -112,6 +113,7 @@ for ( var i = 0; i < currentSources.length; i++ ) {
}
player.src(currentSources);
+<% end %>
</script>
<div class="h-box">