diff --git a/.env.example b/.env.example index 764198b..403b407 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,5 @@ SPOTIPY_CLIENT_ID= SPOTIPY_CLIENT_SECRET= SPOTIPY_REDIRECT_URI= -SECRET_KEY= \ No newline at end of file +SECRET_KEY= +ACCOUNT_KEY_PATH= \ No newline at end of file diff --git a/app/app.py b/app/app.py index 71b5c7d..04e86bd 100644 --- a/app/app.py +++ b/app/app.py @@ -63,7 +63,7 @@ def sync(): lyrics_response = requests.get(f'https://api.lyrics.ovh/v1/{current_track["item"]["artists"][0]["name"]}/{song_name}') if lyrics_response.status_code == 200: raw_lyrics = lyrics_response.json().get('lyrics', '').split('\n') - lyrics = sanitize_lyrics(raw_lyrics) + lyrics = ["\n"] + sanitize_lyrics(raw_lyrics) else: lyrics = ["Lyrics not found"] diff --git a/app/config.py b/app/config.py index dce1d1c..e54f7ec 100644 --- a/app/config.py +++ b/app/config.py @@ -10,7 +10,8 @@ class Config: SPOTIPY_CLIENT_SECRET = os.getenv('SPOTIPY_CLIENT_SECRET') SPOTIPY_REDIRECT_URI = os.getenv('SPOTIPY_REDIRECT_URI', 'http://localhost:5000/callback') SECRET_KEY = os.getenv('SECRET_KEY', 'your_secret_key') + ACCOUNT_KEY_PATH = os.getenv('ACCOUNT_KEY_PATCH', "serviceAccountKey.json") -cred = credentials.Certificate("serviceAccountKey.json") +cred = credentials.Certificate(Config.ACCOUNT_KEY_PATH) firebase_admin.initialize_app(cred) db = firestore.client() diff --git a/app/static/style.css b/app/static/style.css index e66ccac..d7546d7 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -28,7 +28,6 @@ p { button, .button { font-size: 16px; - padding: 10px; margin-right: 10px; cursor: pointer; background-color: #1db954; @@ -36,6 +35,8 @@ button, .button { border: none; border-radius: 5px; text-decoration: none; + border-radius: 30px; + padding: 10px 24px; } a { @@ -45,6 +46,9 @@ a { button:hover, .button:hover { background-color: #1ed760; + -webkit-box-shadow:0px 0px 31px 3px rgba(29,185,84,1); + -moz-box-shadow: 0px 0px 31px 3px rgba(29,185,84,1); + box-shadow: 0px 0px 31px 3px rgba(29,185,84,1); } .center { diff --git a/app/templates/no-sync.html b/app/templates/no-sync.html index 26956d4..c2afa14 100644 --- a/app/templates/no-sync.html +++ b/app/templates/no-sync.html @@ -8,6 +8,7 @@

No Song Currently Playing

+
diff --git a/app/templates/sync.html b/app/templates/sync.html index 9f1d566..c8311fb 100644 --- a/app/templates/sync.html +++ b/app/templates/sync.html @@ -7,13 +7,15 @@ -

Sync Lyrics for {{ song_name }} by {{ artists }}

-
-
-
+
+

Sync Lyrics for {{ song_name }} by {{ artists }}

+
+
+
+
+ +
- -