From e71c8ae7894c76ce48942202c9140f9ee3b096d4 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:11:41 -0300 Subject: [PATCH 1/4] Ensure wvd_path is set when absent --- votify/cli/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/votify/cli/cli.py b/votify/cli/cli.py index 8ac2604..dfadcaf 100644 --- a/votify/cli/cli.py +++ b/votify/cli/cli.py @@ -82,6 +82,8 @@ async def main(config: CliConfig): if config.wvd_path: wvd_path = prompt_path(config.wvd_path) + else: + wvd_path = None if config.database_path: database = Database(config.database_path) From 31dc737f1f8aaadc9611cc11e4c1de0de0e73e82 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:15:44 -0300 Subject: [PATCH 2/4] Warn when Librespot missing and Vorbis unavailable --- votify/cli/cli.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/votify/cli/cli.py b/votify/cli/cli.py index dfadcaf..7ec94ce 100644 --- a/votify/cli/cli.py +++ b/votify/cli/cli.py @@ -92,6 +92,14 @@ async def main(config: CliConfig): database = None flat_filter = None + if not Librespot and not any( + audio_quality.mp4 for audio_quality in config.audio_quality + ): + logger.warning( + "Librespot is not available, " + "Vorbis audio quality for songs will not be available" + ) + api = await SpotifyApi.create_from_netscape_cookies( cookies_path, skip_librespot=not Librespot, From 476e562e8ed59ecb7a2b575f6bec6e3d947bd6dc Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:15:58 -0300 Subject: [PATCH 3/4] Support multiple audio qualities for CLI option --- votify/cli/cli_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/votify/cli/cli_config.py b/votify/cli/cli_config.py index 539a408..23fb87b 100644 --- a/votify/cli/cli_config.py +++ b/votify/cli/cli_config.py @@ -166,7 +166,7 @@ class CliConfig: ] # Audio Interface specific options audio_quality: Annotated[ - AudioQuality, + list[AudioQuality], option( "--audio-quality", help="Comma-separated audio quality priority", From c7bb1ad293460be72ff8e8ee788d9342cb5948a1 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Tue, 24 Mar 2026 16:55:43 -0300 Subject: [PATCH 4/4] Make wvd_path default to None --- votify/interface/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/votify/interface/base.py b/votify/interface/base.py index 2164fe1..737e961 100644 --- a/votify/interface/base.py +++ b/votify/interface/base.py @@ -19,7 +19,7 @@ class SpotifyBaseInterface: api: SpotifyApi, cover_size: CoverSize = CoverSize.EXTRA_LARGE, skip_stream_info: bool = False, - wvd_path: str | None = "./device.wvd", + wvd_path: str | None = None, disallowed_media_types: list[str] | None = None, ) -> None: self.api = api