feat: music from last.fm

This commit is contained in:
Cory Dransfeldt 2023-11-10 20:51:37 -08:00
parent 03bb2e1016
commit 7472eb6285
13 changed files with 125 additions and 188 deletions

View file

@ -37,7 +37,7 @@ module.exports = async function () {
if (data[index]) data[index]['author'] = author.textContent
})
doc.querySelectorAll('.md\\:block .book-cover img').forEach((image, index) => {
const img = image.src.replace('https://cdn.thestorygraph.com', 'https://books.coryd.dev')
const img = image.src.replace('https://cdn.thestorygraph.com', 'https://cd-books.b-cdn.net')
if (!data[index]) data.push({ image: img })
if (data[index]) data[index]['image'] = img
})