mirror of
https://github.com/Xevion/spotify-explicit.git
synced 2025-12-06 01:16:25 -06:00
12 lines
231 B
Python
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() |