mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-13 06:34:45 -04:00
Merge branch 'dev' of https://github.com/nathom/streamrip into dev
This commit is contained in:
commit
fd353d57cc
7 changed files with 83 additions and 39 deletions
17
rip/cli.py
17
rip/cli.py
|
@ -464,11 +464,18 @@ class ConfigCommand(Command):
|
|||
import getpass
|
||||
import hashlib
|
||||
|
||||
self._config.file["qobuz"]["email"] = self.ask("Qobuz email:")
|
||||
self._config.file["qobuz"]["password"] = hashlib.md5(
|
||||
getpass.getpass("Qobuz password (won't show on screen): ").encode()
|
||||
).hexdigest()
|
||||
self._config.save()
|
||||
self._config.file["qobuz"]["use_auth_token"] = self.confirm("Use Qobuz auth token to authenticate?", default=False)
|
||||
|
||||
if self._config.file["qobuz"]["use_auth_token"]:
|
||||
self._config.file["qobuz"]["email_or_userid"] = self.ask("Qobuz user id:")
|
||||
self._config.file["qobuz"]["password_or_token"] = getpass.getpass("Qobuz auth token (won't show on screen): ")
|
||||
self._config.save()
|
||||
else:
|
||||
self._config.file["qobuz"]["email_or_userid"] = self.ask("Qobuz email:")
|
||||
self._config.file["qobuz"]["password_or_token"] = hashlib.md5(
|
||||
getpass.getpass("Qobuz password (won't show on screen): ").encode()
|
||||
).hexdigest()
|
||||
self._config.save()
|
||||
|
||||
if self.option("music-app"):
|
||||
self._conf_music_app()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue