From 023956514b97bcd17085025c9c6f3f4b3a29fe82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20P=C4=99dzich=20=28Mac=29?= Date: Wed, 17 Jan 2024 19:28:21 +0100 Subject: [PATCH] Extract title from Spotify's meta tags --- netlify/functions/validate-pr/appFn.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify/functions/validate-pr/appFn.ts b/netlify/functions/validate-pr/appFn.ts index 0a33e21..a5fbcb5 100644 --- a/netlify/functions/validate-pr/appFn.ts +++ b/netlify/functions/validate-pr/appFn.ts @@ -93,7 +93,7 @@ const appFn = (app: Probot) => { if (found) { const html = await spotifyResponse.text(); - const { description } = await getMetaData({ html }); + const { title, description } = await getMetaData({ html }); const playlistMeta = (description || '') .split(' ยท ') .filter((text) => text !== 'Playlist');