Version 0.8.5

This commit is contained in:
Paco8 committed 2023-12-23 14:17:55 +01:00
1 parent 18d7f85b43
commit d8d081d29b
3 files changed
+8 -4

No files matched your search

+4
View File
@@ -127,6 +127,10 @@ class Movistar(object):
else:
LOG('Loading tokens')
data = self.get_token()
if 'error' in data and self.account['device_id']:
# Try registering the device
self.register_device()
data = self.get_token()
#print_json(data)
if 'accessToken' in data:
self.cache.save_file('tokens.json', json.dumps(data, ensure_ascii=False))