diff --git a/lib/sc/track.go b/lib/sc/track.go
index 72c6265..b4dfcd5 100644
--- a/lib/sc/track.go
+++ b/lib/sc/track.go
@@ -467,8 +467,8 @@ func (t Track) Href() string {
return "/" + t.Author.Permalink + "/" + t.Permalink
}
-func RecentTracks(cid string, prefs cfg.Preferences, tag string, args string) (*Paginated[*Track], error) {
- p := Paginated[*Track]{Next: "https://" + api + "/recent-tracks/" + tag + args}
+func RecentTracks(cid string, prefs cfg.Preferences, args string) (*Paginated[*Track], error) {
+ p := Paginated[*Track]{Next: "https://" + api + "/recent-tracks/" + args}
err := p.Proceed(cid, true)
if err != nil {
return nil, err
diff --git a/main.go b/main.go
index 8c96f7c..bd498bb 100644
--- a/main.go
+++ b/main.go
@@ -200,7 +200,7 @@ func main() {
}
tag := c.Params("tag")
- p, err := sc.RecentTracks(cid, prefs, tag, c.Query("pagination", "?limit=20"))
+ p, err := sc.RecentTracks(cid, prefs, c.Query("pagination", tag+"?limit=20"))
if err != nil {
log.Printf("error getting %s tagged recent-tracks: %s\n", tag, err)
return err
diff --git a/templates/tags.templ b/templates/tags.templ
index afa6541..c0f3626 100644
--- a/templates/tags.templ
+++ b/templates/tags.templ
@@ -30,7 +30,7 @@ templ RecentTracks(tag string, p *sc.Paginated[*sc.Track]) {
@TrackItem(track, true, "")
}
if p.Next != "" {
- more tracks
+ more tracks
}
}
}
@@ -48,7 +48,7 @@ templ PopularTracks(tag string, p *sc.Paginated[*sc.Track]) {
@TrackItem(track, true, "")
}
if p.Next != "" {
- more tracks
+ more tracks
}
}
}
@@ -68,7 +68,7 @@ templ TaggedPlaylists(tag string, p *sc.Paginated[*sc.Playlist]) {
@PlaylistItem(playlist, true)
}
if p.Next != "" && len(p.Collection) != int(p.Total) {
- more playlists
+ more playlists
}
}
}