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:
Ádám Kocsis 2022-03-04 09:12:54 +01:00
parent 463afb4d43
commit 91a58e66ad
2 changed files with 4 additions and 1 deletions

View file

@ -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()

3
pytrakt.json Normal file
View file

@ -0,0 +1,3 @@
{
"OAUTH_EXPIRES_AT": 0
}