Skip to content

Commit

Permalink
add isAnonymous check
Browse files Browse the repository at this point in the history
  • Loading branch information
glomatico committed Sep 29, 2024
1 parent bd83a75 commit 4de703a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions votify/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,11 @@ def main(
logger.setLevel(log_level)
logger.info("Starting Votify")
spotify_api = SpotifyApi(cookies_path)
if spotify_api.config_info["isAnonymous"]:
logger.critical(
"Failed to get a valid session. Try logging in and exporting your cookies again"
)
return
downloader = Downloader(
spotify_api,
output_path,
Expand Down

0 comments on commit 4de703a

Please sign in to comment.