From 210c2a88550c6b8a11e22a7a718b7cf078cfe606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milien=20Devos?= Date: Mon, 25 Jul 2022 12:38:17 +0000 Subject: [PATCH] Fix updated sources not returned inside map func This fix the issue reported in https://github.com/iv-org/invidious/issues/2055#issuecomment-1192894698 --- assets/js/player.js | 1 + 1 file changed, 1 insertion(+) 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 () {