Compare commits

..

No commits in common. "4617f83f5c8bd8b1a84249a4931b85228e3aa2f6" and "b9444658fbb39cd1bf1c61ee5a1d5f0641c49abe" have entirely different histories.

View File

@ -170,11 +170,10 @@ def set_volume(
if volume.startswith("+") or volume.startswith("-"):
current_volume = api.get_volume()
new_volume = max(0, min(100, current_volume + int(volume)))
new_volume = int(new_volume)
else:
new_volume = int(volume)
rich.print(api.set_volume(new_volume), file=sys.stderr)
rich.print(api.set_volume(volume), file=sys.stderr)
if __name__ == "__main__":