From 6c46ce117c3c16b07afc95d8b97a661aa3ebf1c0 Mon Sep 17 00:00:00 2001 From: serr Date: Tue, 20 May 2025 14:26:09 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B8=D0=BC=D0=B2=D0=BE=D0=BB=20?= =?UTF-8?q?=F0=9F=85=B4=20=D0=B7=D0=B0=D0=BC=D0=B5=D0=BD=D1=8F=D1=8E=20?= =?UTF-8?q?=D0=BD=D0=B0=20[E]=20=D0=B2=20=D1=81=D1=82=D1=80=D0=BE=D0=BA?= =?UTF-8?q?=D0=B5=20=D1=81=20=D1=82=D1=80=D0=B5=D0=BA=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mvc/models/lastfm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mvc/models/lastfm.go b/mvc/models/lastfm.go index 05af5b5..6a940c6 100644 --- a/mvc/models/lastfm.go +++ b/mvc/models/lastfm.go @@ -5,6 +5,7 @@ import ( "fmt" "io" "net/http" + "strings" ) type LastFMTrack struct { @@ -54,6 +55,7 @@ func LastFMGetLastTrack(username, apiKey string) (string, error) { if len(resp.RecentTracks.Tracks) > 0 { track := resp.RecentTracks.Tracks[0] data = fmt.Sprintf("%s - %s", track.Name, track.Artist.Name) + data = strings.ReplaceAll(data, "🅴", "[E]") } else { return "", fmt.Errorf("len(resp.RecentTracks.Tracks) <= 0") }