fix: additional errors and notes
This commit is contained in:
parent
b0aa0d6948
commit
84768cc888
6 changed files with 6 additions and 5 deletions
|
@ -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) => {
|
||||
|
|
Reference in a new issue