diff --git a/src/_data/movies.js b/src/_data/movies.js
index f0bc7a81..4f70a411 100644
--- a/src/_data/movies.js
+++ b/src/_data/movies.js
@@ -5,10 +5,17 @@ module.exports = async function () {
const url = 'https://letterboxd.com/cdme/rss'
const asset = new AssetCache('movies_data')
if (asset.isCacheValid('1h')) return await asset.getCachedValue()
- const res = await extract(url).catch((error) => {
+ const res = await extract(url, {
+ getExtraEntryFields: (feedEntry) => {
+ const images = feedEntry['description']?.match(/]*src="[^"]*"[^>]*>/gm) || []
+ return {
+ image: images.length ? images.map((x) => x.replace(/.*src="([^"]*)".*/, '$1'))[0] : '',
+ }
+ },
+ }).catch((error) => {
console.log(error.message)
})
- const data = res.entries.splice(0, 5)
+ const data = res.entries.splice(0, 6)
await asset.save(data, 'json')
return data
}
diff --git a/src/_includes/base.liquid b/src/_includes/base.liquid
index 616f44cd..c3884a2e 100644
--- a/src/_includes/base.liquid
+++ b/src/_includes/base.liquid
@@ -33,9 +33,7 @@
src="https://breezy-restored.coryd.dev/script.js"
data-site="RHNGSUXO"
defer>
-
+
-