Update playlist Markdown list URL

This commit is contained in:
Maciej Pędzich 2024-01-18 11:58:51 +01:00 committed by GitHub
parent 4598bccdc2
commit 17850f3e32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -8,7 +8,7 @@ export default defineEventHandler(async (event) => {
if (!searchName || searchName.length < 3) return [];
const readmeFileContent = await $fetch<string>(
'https://raw.githubusercontent.com/mackorone/spotify-playlist-archive/main/README.md'
'https://raw.githubusercontent.com/mackorone/spotify-playlist-archive/main/playlists/index.md'
);
const [, playlistLinksMdList] = readmeFileContent.split(
/## Playlists \\\([0-9]*\\\)\n\n/gm