Fixed Explore, Added Docker Support ( closes Hyperpipe/Hyperpipe#2 )

This commit is contained in:
Shiny Nematoda
2022-08-02 07:10:13 +00:00
parent 6a5f1d4b7a
commit 7e24fb8176
7 changed files with 54 additions and 5 deletions
+3 -1
View File
@@ -43,7 +43,7 @@ func ParseExplore(raw string) (string, error) {
j := gjson.Parse(raw)
c := j.Get("contents.singleColumnBrowseResultsRenderer.tabs.0.tabRenderer.content" +
".tabRenderer.content.sectionListRenderer.contents.#.musicCarouselShelfRenderer")
".sectionListRenderer.contents.#.musicCarouselShelfRenderer")
a := c.Get("#(header.musicCarouselShelfBasicHeaderRenderer" +
".title.runs.0.text == New albums & singles)")
@@ -51,6 +51,8 @@ func ParseExplore(raw string) (string, error) {
".title.runs.0.text == Trending)")
val := Explore{
TrendingId: t.Get("header.musicCarouselShelfBasicHeaderRenderer" +
".title.runs.0.navigationEndpoint.browseEndpoint.browseId").String(),
Albums: TwoRowItemRenderer("album", a.Get("contents")),
Trending: ResponsiveListItemRenderer(t.Get("contents")),
}