mirror of
https://github.com/glomatico/votify.git
synced 2026-10-30 18:52:33 +01:00
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user