mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-12-22 15:24:40 +01:00
Remove magenta color
This commit is contained in:
parent
5f3c85847f
commit
f4509b00f9
@ -5,7 +5,7 @@ import os
|
||||
import sys
|
||||
|
||||
import qobuz_dl.spoofbuz as spoofbuz
|
||||
from qobuz_dl.color import DF, GREEN, MAGENTA, RED, YELLOW
|
||||
from qobuz_dl.color import DF, GREEN, CYAN, RED, YELLOW
|
||||
from qobuz_dl.commands import qobuz_dl_args
|
||||
from qobuz_dl.core import QobuzDL
|
||||
|
||||
@ -26,19 +26,19 @@ CONFIG_FILE = os.path.join(CONFIG_PATH, "config.ini")
|
||||
def reset_config(config_file):
|
||||
logging.info(f"{YELLOW}Creating config file: {config_file}")
|
||||
config = configparser.ConfigParser()
|
||||
config["DEFAULT"]["email"] = input(f"{MAGENTA}Enter your email:\n-{DF} ")
|
||||
config["DEFAULT"]["email"] = input(f"{CYAN}Enter your email:\n-{DF} ")
|
||||
config["DEFAULT"]["password"] = base64.b64encode(
|
||||
input(f"{MAGENTA}Enter your password\n-{DF} ").encode()
|
||||
input(f"{CYAN}Enter your password\n-{DF} ").encode()
|
||||
).decode()
|
||||
config["DEFAULT"]["default_folder"] = (
|
||||
input(
|
||||
f"{MAGENTA}Folder for downloads (leave empy for default 'Qobuz Downloads')\n-{DF} "
|
||||
f"{CYAN}Folder for downloads (leave empy for default 'Qobuz Downloads')\n-{DF} "
|
||||
)
|
||||
or "Qobuz Downloads"
|
||||
)
|
||||
config["DEFAULT"]["default_quality"] = (
|
||||
input(
|
||||
f"{MAGENTA}Download quality (5, 6, 7, 27) "
|
||||
f"{CYAN}Download quality (5, 6, 7, 27) "
|
||||
"[320, LOSSLESS, 24B <96KHZ, 24B >96KHZ]"
|
||||
f"\n(leave empy for default '6')\n-{DF} "
|
||||
)
|
||||
@ -116,7 +116,7 @@ def main():
|
||||
qobuz.interactive()
|
||||
except KeyboardInterrupt:
|
||||
logging.info(
|
||||
f"{RED}Interrupted by user\n{MAGENTA}Already downloaded items will "
|
||||
f"{RED}Interrupted by user\n{YELLOW}Already downloaded items will "
|
||||
"be skipped if you try to download the same releases again"
|
||||
)
|
||||
|
||||
|
@ -13,7 +13,7 @@ from pathvalidate import sanitize_filename
|
||||
|
||||
import qobuz_dl.spoofbuz as spoofbuz
|
||||
from qobuz_dl import downloader, qopy
|
||||
from qobuz_dl.color import MAGENTA, OFF, RED, YELLOW, DF, RESET
|
||||
from qobuz_dl.color import CYAN, OFF, RED, YELLOW, DF, RESET
|
||||
|
||||
WEB_URL = "https://play.qobuz.com/"
|
||||
ARTISTS_SELECTOR = "td.chartlist-artist > a"
|
||||
@ -289,7 +289,7 @@ class QobuzDL:
|
||||
logger.info(f"{YELLOW}Ok, we'll search for {selected_type}s{RESET}")
|
||||
final_url_list = []
|
||||
while True:
|
||||
query = input(f"{MAGENTA}Enter your search: [Ctrl + c to quit]\n-{DF} ")
|
||||
query = input(f"{CYAN}Enter your search: [Ctrl + c to quit]\n-{DF} ")
|
||||
logger.info(f"{YELLOW}Searching...{RESET}")
|
||||
options = self.search_by_type(
|
||||
query, selected_type, self.interactive_limit
|
||||
|
Loading…
Reference in New Issue
Block a user