mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2025-05-07 20:38:41 +00:00
Add make loginning on instances (manually)
This commit is contained in:
parent
5184f81277
commit
a1765500ed
2 changed files with 26 additions and 2 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue