mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-27 16:05:48 +01:00
Extract title from Spotify's meta tags
This commit is contained in:
parent
ab17aafa0c
commit
023956514b
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user