diff --git a/votify/cli/cli.py b/votify/cli/cli.py index 8ac2604..7ec94ce 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) @@ -90,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, 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", 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