mirror of
https://github.com/SinTan1729/TvTimeToTrakt.git
synced 2024-12-25 04:48:38 -06:00
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
2 changed files with 4 additions and 1 deletions
|
@ -36,7 +36,7 @@ class Expando(object):
|
||||||
|
|
||||||
|
|
||||||
def isAuthenticated():
|
def isAuthenticated():
|
||||||
with open(f"{Path.home()}/.pytrakt.json") as f:
|
with open("pytrakt.json") as f:
|
||||||
data = json.load(f)
|
data = json.load(f)
|
||||||
daysBeforeExpiration = (
|
daysBeforeExpiration = (
|
||||||
datetime.fromtimestamp(data["OAUTH_EXPIRES_AT"]) - datetime.now()
|
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