From 936cadfea85e1e38fbf1bfdbcc7ce0420649fa89 Mon Sep 17 00:00:00 2001 From: Alfie King Date: Fri, 3 Jul 2026 00:24:59 +0100 Subject: [PATCH] small update --- src/music_metadata.py | 2 +- static/js/smileos.js | 9 +++++++++ templates/bases/base.html | 4 ++-- templates/terminal.html | 2 +- 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/src/music_metadata.py b/src/music_metadata.py index 60b81c2..3f81d4d 100644 --- a/src/music_metadata.py +++ b/src/music_metadata.py @@ -13,7 +13,7 @@ def metadata(): abort(400, "Artist name is required") data = requests.get( - f"https://api.listenbrainz.org/1/metadata/lookup/?recording_name={quote(request.args.get("recording_name"))}&artist_name={quote(request.args.get("artist_name"))}&metadata=true&inc=artist+tag+release", + f"https://api.listenbrainz.org/1/metadata/lookup/?recording_name={quote(request.args.get('recording_name'))}&artist_name={quote(request.args.get('artist_name'))}&metadata=true&inc=artist+tag+release", headers={ "Authorization": f"Token {env("LISTENBRAINZ_TOKEN")}" } diff --git a/static/js/smileos.js b/static/js/smileos.js index 23fa4db..a17c806 100644 --- a/static/js/smileos.js +++ b/static/js/smileos.js @@ -103,4 +103,13 @@ document.getElementById("smileos-restart-music").addEventListener("click", async music.loop = true; music.volume = 0.2; music.play(); +}); + + +document.getElementById("secret").addEventListener("click", function() { + click.play(); + document.getElementById("smileos-window-title").innerHTML = "Secret :3"; + document.getElementById("smileos-window-content").innerHTML = ` + Well you found me, here's your Prize :3 + `; }); \ No newline at end of file diff --git a/templates/bases/base.html b/templates/bases/base.html index dd60c76..0e673ee 100644 --- a/templates/bases/base.html +++ b/templates/bases/base.html @@ -31,7 +31,7 @@
  • Terminal
  • Events
  • Gitea
  • -
  • LastFm
  • +
  • Music
  • Prismic
  • Spotify
  • Steam
  • @@ -42,7 +42,7 @@
    -
    heya, try typing "furry", "irken" or "scratch" into this page!
    +
    heya, try typing "owo", "doom" or "kfc" into this page!

    BUTTONS

    diff --git a/templates/terminal.html b/templates/terminal.html index 8ba3b0a..386dc4f 100644 --- a/templates/terminal.html +++ b/templates/terminal.html @@ -12,7 +12,7 @@ {% block content %}
    - smile + smile SmileOS 2.0 minimize maximize