mirror of
https://github.com/maciejpedzich/playlist-entry-validator.git
synced 2024-11-10 00:43:02 +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) {
|
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');
|
||||||
|
Loading…
Reference in New Issue
Block a user