mirror of
https://github.com/Viren070/stremio-addons-list.git
synced 2025-12-01 23:19:02 +01:00
fix not being able to build without cache (#823)
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ const getCached = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
needle.get(`https://${config['netlify-domain']}/catalog.json`, config.needle, (err, resp, body) => {
|
needle.get(`https://${config['netlify-domain']}/catalog.json`, config.needle, (err, resp, body) => {
|
||||||
if ((body || [])[0].transportUrl && body[0].transportName && body[0].manifest) {
|
if ((body || []).length && body[0].transportUrl && body[0].transportName && body[0].manifest) {
|
||||||
console.log('loaded old addon catalog')
|
console.log('loaded old addon catalog')
|
||||||
cached.catalog = body
|
cached.catalog = body
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user