diff --git a/.env.example b/.env.example index 418d0fd..5b22a6f 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ SPOTIFY_CLIENT_ID='___' SPOTIFY_SECRET_ID='____' -BASE_URL='http://localhost:3000/api' +BASE_URL='http://127.0.0.1:3000/api' FIREBASE='__BASE64_FIREBASE_JSON_FILE__' diff --git a/api/view.py b/api/view.py index cc991a6..84ab923 100644 --- a/api/view.py +++ b/api/view.py @@ -412,9 +412,12 @@ def catch_all(path): # Only convert to base64 if image was successfully loaded if img is not None: img_b64 = to_img_b64(img) + if img is None: + img_b64=to_img_b64('img/offline.png') # Extract cover image color - if is_bar_color_from_cover and img is not None: + if is_bar_color_from_cover : + is_skip_dark = False if theme in ["default"]: diff --git a/img/offline.png b/img/offline.png new file mode 100644 index 0000000..4421d31 Binary files /dev/null and b/img/offline.png differ