mirror of
https://github.com/Wojtek242/qobuz-dl.git
synced 2024-11-22 19:15:25 +01:00
Remove magenta color
This commit is contained in:
parent
5f3c85847f
commit
f4509b00f9
@ -5,7 +5,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
import qobuz_dl.spoofbuz as spoofbuz
|
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.commands import qobuz_dl_args
|
||||||
from qobuz_dl.core import QobuzDL
|
from qobuz_dl.core import QobuzDL
|
||||||
|
|
||||||
@ -26,19 +26,19 @@ CONFIG_FILE = os.path.join(CONFIG_PATH, "config.ini")
|
|||||||
def reset_config(config_file):
|
def reset_config(config_file):
|
||||||
logging.info(f"{YELLOW}Creating config file: {config_file}")
|
logging.info(f"{YELLOW}Creating config file: {config_file}")
|
||||||
config = configparser.ConfigParser()
|
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(
|
config["DEFAULT"]["password"] = base64.b64encode(
|
||||||
input(f"{MAGENTA}Enter your password\n-{DF} ").encode()
|
input(f"{CYAN}Enter your password\n-{DF} ").encode()
|
||||||
).decode()
|
).decode()
|
||||||
config["DEFAULT"]["default_folder"] = (
|
config["DEFAULT"]["default_folder"] = (
|
||||||
input(
|
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"
|
or "Qobuz Downloads"
|
||||||
)
|
)
|
||||||
config["DEFAULT"]["default_quality"] = (
|
config["DEFAULT"]["default_quality"] = (
|
||||||
input(
|
input(
|
||||||
f"{MAGENTA}Download quality (5, 6, 7, 27) "
|
f"{CYAN}Download quality (5, 6, 7, 27) "
|
||||||
"[320, LOSSLESS, 24B <96KHZ, 24B >96KHZ]"
|
"[320, LOSSLESS, 24B <96KHZ, 24B >96KHZ]"
|
||||||
f"\n(leave empy for default '6')\n-{DF} "
|
f"\n(leave empy for default '6')\n-{DF} "
|
||||||
)
|
)
|
||||||
@ -116,7 +116,7 @@ def main():
|
|||||||
qobuz.interactive()
|
qobuz.interactive()
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
logging.info(
|
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"
|
"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
|
import qobuz_dl.spoofbuz as spoofbuz
|
||||||
from qobuz_dl import downloader, qopy
|
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/"
|
WEB_URL = "https://play.qobuz.com/"
|
||||||
ARTISTS_SELECTOR = "td.chartlist-artist > a"
|
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}")
|
logger.info(f"{YELLOW}Ok, we'll search for {selected_type}s{RESET}")
|
||||||
final_url_list = []
|
final_url_list = []
|
||||||
while True:
|
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}")
|
logger.info(f"{YELLOW}Searching...{RESET}")
|
||||||
options = self.search_by_type(
|
options = self.search_by_type(
|
||||||
query, selected_type, self.interactive_limit
|
query, selected_type, self.interactive_limit
|
||||||
|
2
setup.py
2
setup.py
@ -13,7 +13,7 @@ requirements = read_file("requirements.txt").strip().split()
|
|||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=pkg_name,
|
name=pkg_name,
|
||||||
version="0.7.0",
|
version="0.7.1",
|
||||||
author="Vitiko",
|
author="Vitiko",
|
||||||
author_email="vhnz98@gmail.com",
|
author_email="vhnz98@gmail.com",
|
||||||
description="The complete Lossless and Hi-Res music downloader for Qobuz",
|
description="The complete Lossless and Hi-Res music downloader for Qobuz",
|
||||||
|
Loading…
Reference in New Issue
Block a user