fix: additional errors and notes

This commit is contained in:
Cory Dransfeldt 2023-05-06 20:28:46 -07:00
parent b0aa0d6948
commit 84768cc888
No known key found for this signature in database
6 changed files with 6 additions and 5 deletions

View file

@ -4,6 +4,7 @@ const { AssetCache } = require('@11ty/eleventy-fetch')
module.exports = async function () {
const TV_KEY = process.env.API_KEY_TRAKT
const url = `https://trakt.tv/users/cdransf/history.atom?slurm=${TV_KEY}`
// noinspection JSCheckFunctionSignatures
const asset = new AssetCache('tv_data')
if (asset.isCacheValid('1h')) return await asset.getCachedValue()
const res = await extract(url).catch((error) => {