Add make loginning on instances (manually)

This commit is contained in:
localhost_frssoft 2022-11-08 17:09:54 +03:00
parent 5184f81277
commit a1765500ed
2 changed files with 26 additions and 2 deletions

View file

@ -22,6 +22,8 @@ else:
def select_instance(new_instance=None):
global instance
instance = new_instance
with open('.auth.json', 'rt') as f:
auth = json.loads(f.read())
new_token = auth.get(instance)
s.headers.update({"Authorization": None})
player.http_header_fields = []