diff --git a/src/modules/processing/services/tiktok.js b/src/modules/processing/services/tiktok.js index 0da62a1e..4743667a 100644 --- a/src/modules/processing/services/tiktok.js +++ b/src/modules/processing/services/tiktok.js @@ -35,10 +35,11 @@ export default async function(obj) { redirect: "manual", headers: { "user-agent": userAgent } }).then((r) => { return r.text() }).catch(() => { return false }); + if (!html) return { error: 'ErrorCouldntFetch' }; - if (html.slice(0, 17) === '