From 17388f8ee50f0d86426250e8399e8883e7b3e2f7 Mon Sep 17 00:00:00 2001 From: Shiny Nematoda Date: Sun, 6 Aug 2023 11:40:03 +0000 Subject: [PATCH] infer shelf playlistId from menu --- lib/album.go | 2 +- lib/common.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/album.go b/lib/album.go index 49c4935..81f43ed 100644 --- a/lib/album.go +++ b/lib/album.go @@ -4,7 +4,7 @@ import ( "net/url" "codeberg.org/Hyperpipe/hyperpipe-backend/utils" - "github.com/tidwall/gjson" + "github.com/tidwall/gjson" ) func GetAlbumUrl(id string) (map[string]string, int) { diff --git a/lib/common.go b/lib/common.go index 6e35d23..7de79fe 100644 --- a/lib/common.go +++ b/lib/common.go @@ -309,7 +309,7 @@ func ShelfRenderer(j gjson.Result) map[string]interface{} { v.Get("header.musicCarouselShelfBasicHeaderRenderer.title"), ) - r[title] = TwoRowItemRenderer(v.Get("contents"), false) + r[title] = TwoRowItemRenderer(v.Get("contents"), true) }(s) return true