diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90b4010 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +client_id +client_secret +code diff --git a/client_id b/client_id index fd61a82..9b3b214 100644 --- a/client_id +++ b/client_id @@ -1 +1 @@ -1cb8bc27872c4bcaaad0e95f123b4f7d \ No newline at end of file +8af579a41b724877bd8e68fa5eb86925 \ No newline at end of file diff --git a/client_secret b/client_secret index 1af3da5..bfc3067 100644 --- a/client_secret +++ b/client_secret @@ -1 +1 @@ -9893dfb6d9eb43eebf082f9173ce937c \ No newline at end of file +0e6cb5b085a24296a07430dd14bbc560 \ No newline at end of file diff --git a/code b/code deleted file mode 100644 index f05bb08..0000000 --- a/code +++ /dev/null @@ -1 +0,0 @@ -AQCZgUjpd41T5OxjgCR08o-WIKMoJVOkKQnnXWWyCMPfr9AF8OOauNn9wYPX4sFKpWxINeHmeimsNw7c2e1HVCu038drk_o9K-0rdgtG7QlQc02ENsbkJC5tjr3M40-oxdmoz203NA_qj1J_DyQBx6TA-FbHS8WXiDTIn9pB3IpVNCSCf8kubjn6MOvDU8w6uXyjwCDLUBN5ptfARe4yFEXKNlgxgQcbAsj0DPpS4owhvYbo-tAwINmyJPuO61-TUbQ6U5qWLN7A1UkhbAkX0kJfFd3WnCsGiDpQmgLmmb8 \ No newline at end of file diff --git a/spotifycontroller.py b/spotifycontroller.py index 25b51bc..66fb4c6 100644 --- a/spotifycontroller.py +++ b/spotifycontroller.py @@ -10,10 +10,11 @@ import syncedlyrics app = Flask(__name__) if os.path.exists('client_id'): - with open('code', 'r') as file: + with open('client_id', 'r') as file: client_id = file.read() +print(client_id) if os.path.exists('client_secret'): - with open('code', 'r') as file: + with open('client_secret', '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")