mirror of
				https://gitea.invidious.io/iv-org/invidious
				synced 2025-06-05 23:29:12 +02:00 
			
		
		
		
	Fix updated sources not returned inside map func
This fix the issue reported in https://github.com/iv-org/invidious/issues/2055#issuecomment-1192894698
This commit is contained in:
		@@ -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 () {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user