diff --git a/TimeToTrackt.py b/TimeToTrakt.py similarity index 99% rename from TimeToTrackt.py rename to TimeToTrakt.py index f8c7cfb..a1f8b6c 100644 --- a/TimeToTrackt.py +++ b/TimeToTrakt.py @@ -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() diff --git a/pytrakt.json b/pytrakt.json new file mode 100644 index 0000000..574eedb --- /dev/null +++ b/pytrakt.json @@ -0,0 +1,3 @@ +{ + "OAUTH_EXPIRES_AT": 0 +} \ No newline at end of file