chore(YouTube): Simplify debug log

This commit is contained in:
inotia00 2025-02-10 17:59:28 +09:00
parent 63d88c407b
commit 838bbede71

View File

@ -8,12 +8,11 @@ public class PlaybackSpeedWhilePlayingPatch {
private static final float DEFAULT_YOUTUBE_PLAYBACK_SPEED = 1.0f;
public static boolean playbackSpeedChanged(float playbackSpeed) {
PlayerType playerType = PlayerType.getCurrent();
if (playbackSpeed == DEFAULT_YOUTUBE_PLAYBACK_SPEED &&
PlayerType.getCurrent().isMaximizedOrFullscreenOrPiP()) {
playerType.isMaximizedOrFullscreenOrPiP()) {
Logger.printDebug(() -> "Even though playback has already started and the user has not changed the playback speed, " +
"the app attempts to change the playback speed to 1.0x." +
"\nIgnore changing playback speed, as it is invalid request.");
Logger.printDebug(() -> "Ignore changing playback speed, as it is invalid request: " + playerType.name());
return true;
}