diff --git a/client_id b/client_id new file mode 100644 index 0000000..fd61a82 --- /dev/null +++ b/client_id @@ -0,0 +1 @@ +1cb8bc27872c4bcaaad0e95f123b4f7d \ No newline at end of file diff --git a/client_secret b/client_secret new file mode 100644 index 0000000..1af3da5 --- /dev/null +++ b/client_secret @@ -0,0 +1 @@ +9893dfb6d9eb43eebf082f9173ce937c \ No newline at end of file diff --git a/spotifycontroller.py b/spotifycontroller.py index a5222f1..25b51bc 100644 --- a/spotifycontroller.py +++ b/spotifycontroller.py @@ -9,9 +9,12 @@ import syncedlyrics app = Flask(__name__) - -client_id = '1cb8bc27872c4bcaaad0e95f123b4f7d' -client_secret = '9893dfb6d9eb43eebf082f9173ce937c' +if os.path.exists('client_id'): + with open('code', 'r') as file: + client_id = file.read() +if os.path.exists('client_secret'): + with open('code', 'r') as file: + client_secret = file.read() redirect_uri = 'http://127.0.0.1:8888/callback' encoded_creds = base64.b64encode(client_id.encode() + b':' + client_secret.encode()).decode("utf-8")