feat: music from last.fm
This commit is contained in:
parent
03bb2e1016
commit
7472eb6285
13 changed files with 125 additions and 188 deletions
|
@ -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
|
||||
})
|
||||
|
|
Reference in a new issue