Merge pull request #89 from glomatico/librespot

Librespot
This commit is contained in:
Rafael Moraes
2026-03-24 16:56:17 -03:00
committed by GitHub
3 changed files with 12 additions and 2 deletions
+10
View File
@@ -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,
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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