Use cleo for the CLI

This commit is contained in:
nathom 2021-07-30 17:33:26 -07:00
parent dfbe53674c
commit 0376c421b5
4 changed files with 456 additions and 718 deletions

View file

@ -12,7 +12,7 @@ from pprint import pformat
from typing import Any, Dict, Generator, Optional, Sequence, Tuple, Union
import deezer
from click import secho
from click import launch, secho
from Cryptodome.Cipher import AES
from .constants import (
@ -807,7 +807,7 @@ class TidalClient(Client):
# ------------ Utilities to login -------------
def _login_new_user(self, launch: bool = True):
def _login_new_user(self, launch_url: bool = True):
"""Create app url where the user can log in.
:param launch: Launch the browser.
@ -819,7 +819,7 @@ class TidalClient(Client):
f"Go to {login_link} to log into Tidal within 5 minutes.",
fg="blue",
)
if launch:
if launch_url:
launch(login_link)
start = time.time()