diff --git a/README.md b/README.md index 06c9304..9923062 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,10 @@ - - - - -
+ [![Spotify](https://novatorem.vercel.app/api/spotify?background_color=0d1117&border_color=ffffff)](https://open.spotify.com/user/omnitenebris) +

[![Spotify](https://novatorem.vercel.app/api/spotify?background_color=0d1117&border_color=ffffff)](https://open.spotify.com/user/omnitenebris) - -
- - 

This repository is [unlicense](https://choosealicense.com/licenses/unlicense/)[d], feel free to fork!

-[![Linkedin](https://img.shields.io/badge/linked-in-369?style=flat-square&logo=linkedin&logoColor=white&color=blue)](https://www.linkedin.com/in/andrew-novac) -[![E-Mail](https://img.shields.io/badge/email-reveal-2a8?style=flat-square&logo=gmail&logoColor=white)](https://mail.novac.dev/) -[![Visits](https://komarev.com/ghpvc/?username=novatorem&logo=GitHub&label=github%20visits&color=336699&logoColor=white&style=flat-square)](https://github.com/novatorem) - -

-
\ No newline at end of file + 
+ This repository is [unlicense](https://choosealicense.com/licenses/unlicense/)[d], feel free to fork!

+ [![Linkedin](https://img.shields.io/badge/linked-in-369?style=flat-square&logo=linkedin&logoColor=white&color=blue)](https://www.linkedin.com/in/andrew-novac) + [![E-Mail](https://img.shields.io/badge/email-reveal-2a8?style=flat-square&logo=gmail&logoColor=white)](https://mail.novac.dev/) + [![Visits](https://komarev.com/ghpvc/?username=novatorem&logo=GitHub&label=github%20visits&color=336699&logoColor=white&style=flat-square)](https://github.com/novatorem) +
\ No newline at end of file diff --git a/api/spotify.py b/api/spotify.py index 327ee5c..47c283c 100644 --- a/api/spotify.py +++ b/api/spotify.py @@ -5,7 +5,7 @@ import requests from base64 import b64encode from dotenv import load_dotenv, find_dotenv -from flask import Flask, Response, jsonify, render_template, templating, request +from flask import Flask, Response, render_template, request load_dotenv(find_dotenv()) @@ -96,7 +96,7 @@ def getTemplate(): templates = json.loads(file.read()) return templates["templates"][templates["current-theme"]] except Exception as e: - print(f"Failed to load templates.") + print(f"Failed to load templates.\r\n```{e}```") return FALLBACK_THEME diff --git a/api/templates/spotify-dark.html.j2 b/api/templates/spotify-dark.html.j2 index 824a67c..7b20226 100644 --- a/api/templates/spotify-dark.html.j2 +++ b/api/templates/spotify-dark.html.j2 @@ -3,7 +3,6 @@