Skip to content

Commit

Permalink
Update player.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ImprovedTube committed Jul 27, 2020
1 parent 905e378 commit 4194e9d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/youtube/js/features/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ ImprovedTube.player_playback_speed = function(node) {
if (ImprovedTube.isset(ImprovedTube.storage.player_playback_speed) && ImprovedTube.storage.player_forced_playback_speed === true) {
node.querySelector('video').playbackRate = playback_speed;

try {
node.setPlaybackRate(playback_speed);
try { if (window.location.href.indexOf("music") < 0){ //quickfix to keep running on music.youtube.com
node.setPlaybackRate(playback_speed);
}
} catch (err) {}
}
};
Expand Down Expand Up @@ -823,4 +824,4 @@ ImprovedTube.player_loudness_normalization = function() {
console.log(err);
}
}
};
};

0 comments on commit 4194e9d

Please sign in to comment.