Use list index 1 results

This commit is contained in:
2022-01-03 18:02:58 +01:00
parent f4dbaf4c58
commit 559e32c059

View File

@@ -68,7 +68,7 @@ async function SearchPiratebay(query) {
}
if (results) {
const jsonData = JSON.parse(results, null, "\t");
const jsonData = JSON.parse(results[1], null, "\t");
cache.set(cacheKey, jsonData);
resolve(jsonData);
}