Fixes the filename of the main python script to match what is in the README.
Adds the pytrakt.json to avoid error for first run. Changes the path of pytrakt.json to the working directory instead of home folder.
This commit is contained in:
parent
463afb4d43
commit
91a58e66ad
|
@ -36,7 +36,7 @@ class Expando(object):
|
|||
|
||||
|
||||
def isAuthenticated():
|
||||
with open(f"{Path.home()}/.pytrakt.json") as f:
|
||||
with open("pytrakt.json") as f:
|
||||
data = json.load(f)
|
||||
daysBeforeExpiration = (
|
||||
datetime.fromtimestamp(data["OAUTH_EXPIRES_AT"]) - datetime.now()
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"OAUTH_EXPIRES_AT": 0
|
||||
}
|
Loading…
Reference in New Issue