More progress on the Innertube home parser
This commit is contained in:
@@ -6,5 +6,5 @@
|
||||
</script>
|
||||
|
||||
<div id="main">
|
||||
<!-- <ScrollableCardMenu header={'Listen Again'} cardDataList={data.recommendations} /> -->
|
||||
<ScrollableCardMenu header={'Listen Again'} cardDataList={data.recommendations} />
|
||||
</div>
|
||||
|
||||
@@ -36,7 +36,12 @@ export const GET: RequestHandler = async ({ params, fetch }) => {
|
||||
break
|
||||
case 'youtube-music':
|
||||
const youtubeMusic = new YouTubeMusic(connection)
|
||||
youtubeMusic.getHome()
|
||||
await youtubeMusic
|
||||
.getHome()
|
||||
.then(({ listenAgain, quickPicks, newReleases }) => {
|
||||
for (const mediaItem of listenAgain) recommendations.push(mediaItem)
|
||||
})
|
||||
.catch()
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user