Extract title from Spotify's meta tags

This commit is contained in:
2024-01-17 19:28:21 +01:00
committed by GitHub
parent ab17aafa0c
commit 023956514b

View File

@@ -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');