Extract title from Spotify's meta tags

This commit is contained in:
Maciej Pędzich 2024-01-17 19:28:21 +01:00 committed by GitHub
parent ab17aafa0c
commit 023956514b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,7 +93,7 @@ const appFn = (app: Probot) => {
if (found) { if (found) {
const html = await spotifyResponse.text(); const html = await spotifyResponse.text();
const { description } = await getMetaData({ html }); const { title, description } = await getMetaData({ html });
const playlistMeta = (description || '') const playlistMeta = (description || '')
.split(' · ') .split(' · ')
.filter((text) => text !== 'Playlist'); .filter((text) => text !== 'Playlist');