Files
spotify-explicit/main.py
2019-10-27 14:24:28 -05:00

12 lines
231 B
Python

import os
import sys
import time
import json
import auth
import pull
import process
import logging
cache = json.load(open(os.path.join(sys.path[0], f'.cache-{auth.username}')))
if time.time() > cache['expires_at']:
pull.main()