Merge pull request #20 from arebokert/main

Hide input while entering password
This commit is contained in:
Footsiefat 2021-10-20 08:06:57 +13:00 committed by GitHub
commit 692824be96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ from librespot.audio.decoders import AudioQuality, VorbisOnlyAudioQuality
from librespot.core import Session
from librespot.metadata import TrackId
from pydub import AudioSegment
from getpass import getpass
SESSION: Session = None
@ -73,7 +74,7 @@ def login():
pass
while True:
user_name = input("UserName: ")
password = input("Password: ")
password = getpass()
try:
SESSION = Session.Builder().user_pass(user_name, password).create()
return