Fix updated sources not returned inside map func

This fix the issue reported in https://github.com/iv-org/invidious/issues/2055#issuecomment-1192894698
pull/3232/head
Émilien Devos 2 years ago committed by GitHub
parent 5e090778ae
commit 210c2a8855
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -68,6 +68,7 @@ player.on('error', function () {
// add local=true to all current sources // add local=true to all current sources
player.src(player.currentSources().map(function (source) { player.src(player.currentSources().map(function (source) {
source.src += '&local=true'; source.src += '&local=true';
return source;
})); }));
} else if (reloadMakesSense) { } else if (reloadMakesSense) {
setTimeout(function () { setTimeout(function () {

Loading…
Cancel
Save