diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b25672e..3b1b1b9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1 +1 @@ -{".":"1.5.2"} +{".":"1.6.0"} diff --git a/pikaraoke/CHANGELOG.md b/pikaraoke/CHANGELOG.md index 073ac40..a4bb98d 100644 --- a/pikaraoke/CHANGELOG.md +++ b/pikaraoke/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [1.6.0](https://github.com/vicwomg/pikaraoke/compare/1.5.2...1.6.0) (2024-11-23) + + +### Features + +* Added support to Android via Termux App ([#423](https://github.com/vicwomg/pikaraoke/issues/423)) ([0118733](https://github.com/vicwomg/pikaraoke/commit/0118733d698263bc684829aeed69b3c589df43e5)) + ## [1.5.2](https://github.com/vicwomg/pikaraoke/compare/1.5.1...1.5.2) (2024-11-05) diff --git a/pikaraoke/karaoke.py b/pikaraoke/karaoke.py index c1984ca..d21ff79 100644 --- a/pikaraoke/karaoke.py +++ b/pikaraoke/karaoke.py @@ -676,6 +676,10 @@ def volume_change(self, vol_level): def vol_up(self): self.volume += 0.1 + # keep the maximum volume to 1 when volume up is clicked + if self.volume > 1.0: + self.volume = 1.0 + logging.debug("max volume reached.") logging.debug(f"Increasing volume by 10%: {self.volume}") if self.is_file_playing(): self.now_playing_command = "vol_up" @@ -686,6 +690,10 @@ def vol_up(self): def vol_down(self): self.volume -= 0.1 + # keep the minimum volume to 0 when volume down is clicked + if self.volume < 0: + self.volume = 0 + logging.debug("minimum volume reached.") logging.debug(f"Decreasing volume by 10%: {self.volume}") if self.is_file_playing(): self.now_playing_command = "vol_down" diff --git a/pikaraoke/version.py b/pikaraoke/version.py index cbbefe0..654d287 100644 --- a/pikaraoke/version.py +++ b/pikaraoke/version.py @@ -1 +1 @@ -__version__ = "1.5.2" # {x-release-please-version} +__version__ = "1.6.0" # {x-release-please-version} diff --git a/pyproject.toml b/pyproject.toml index 196b657..f008ed2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pikaraoke" -version = "1.5.2" +version = "1.6.0" description = "Youtube-based Karaoke machine for Raspberry Pi, OSX, Windows, and Linux" authors = ["Vic Wong"] readme = "docs/README.md"