Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _switch_mode(self):
if ControllerApi.player.playback_mode == 4:
ControllerApi.player.set_play_mode(1)
elif ControllerApi.player.playback_mode == 1:
ControllerApi.player.set_play_mode(3)
elif ControllerApi.player.playback_mode == 3:
ControllerApi.player.set_play_mode(4)
else:
ControllerApi.player.set_play_mode(4)
def _switch_mode(self):
if ControllerApi.player.playback_mode == 4:
ControllerApi.player.set_play_mode(1)
elif ControllerApi.player.playback_mode == 1:
ControllerApi.player.set_play_mode(3)
elif ControllerApi.player.playback_mode == 3:
ControllerApi.player.set_play_mode(4)
else:
ControllerApi.player.set_play_mode(4)
def _switch_mode(self):
if ControllerApi.player.playback_mode == 4:
ControllerApi.player.set_play_mode(1)
elif ControllerApi.player.playback_mode == 1:
ControllerApi.player.set_play_mode(3)
elif ControllerApi.player.playback_mode == 3:
ControllerApi.player.set_play_mode(4)
else:
ControllerApi.player.set_play_mode(4)
def _switch_mode(self):
if ControllerApi.player.playback_mode == 4:
ControllerApi.player.set_play_mode(1)
elif ControllerApi.player.playback_mode == 1:
ControllerApi.player.set_play_mode(3)
elif ControllerApi.player.playback_mode == 3:
ControllerApi.player.set_play_mode(4)
else:
ControllerApi.player.set_play_mode(4)