mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2024-12-25 04:48:38 -06:00
Merge pull request #9 from koccs/fixes
This commit is contained in:
commit
503bc9188c
2 changed files with 4 additions and 1 deletions
|
@ -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
3
pytrakt.json
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"OAUTH_EXPIRES_AT": 0
|
||||
}
|
Loading…
Reference in a new issue