mirror of
https://github.com/glomatico/votify.git
synced 2026-10-07 08:22:07 +02:00
Skip Librespot when creating SpotifyApi
This commit is contained in:
+5
-2
@@ -8,7 +8,7 @@ import colorama
|
||||
from dataclass_click import dataclass_click
|
||||
|
||||
from .. import __version__
|
||||
from ..api.api import SpotifyApi
|
||||
from ..api.api import Librespot, SpotifyApi
|
||||
from ..downloader.audio import SpotifyAudioDownloader
|
||||
from ..downloader.base import SpotifyBaseDownloader
|
||||
from ..downloader.downloader import SpotifyDownloader
|
||||
@@ -90,7 +90,10 @@ async def main(config: CliConfig):
|
||||
database = None
|
||||
flat_filter = None
|
||||
|
||||
api = await SpotifyApi.create_from_netscape_cookies(cookies_path)
|
||||
api = await SpotifyApi.create_from_netscape_cookies(
|
||||
cookies_path,
|
||||
skip_librespot=not Librespot,
|
||||
)
|
||||
if api.anonymous_session:
|
||||
logger.critical(
|
||||
"Could not authenticate with the provided cookies, "
|
||||
|
||||
Reference in New Issue
Block a user