Skip to content

Invidious is an alternative front-end to YouTube

Fix updated sources not returned inside map func

Émilien Devos210c2a88550c
diff --git a/assets/js/player.js b/assets/js/player.js
index 287b7ea1..b75e7134 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -68,6 +68,7 @@ player.on('error', function () {
// add local=true to all current sources
player.src(player.currentSources().map(function (source) {
source.src += '&local=true';
+ return source;
}));
} else if (reloadMakesSense) {
setTimeout(function () {