From 791f216a4510f3a4f05dd08c4c5f39fd2ba9c2c7 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 30 Oct 2018 08:34:55 -0500 Subject: [PATCH] Don't remove unsupported sources --- src/invidious/views/components/player.ecr | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/invidious/views/components/player.ecr b/src/invidious/views/components/player.ecr index 8b9e92da..0dbdb05f 100644 --- a/src/invidious/views/components/player.ecr +++ b/src/invidious/views/components/player.ecr @@ -137,18 +137,6 @@ player.markers({ player.currentTime(<%= params[:video_start] %>); <% end %> -<% if !params[:listen] %> -var currentSources = player.currentSources(); -for (var i = 0; i < currentSources.length; i++) { - if (player.canPlayType(currentSources[i]["type"].split(";")[0]) === "") { - currentSources.splice(i); - i--; - } -} - -player.src(currentSources); -<% end %> - player.volume(<%= params[:volume].to_f / 100 %>); player.playbackRate(<%= params[:speed] %>);