Grosse refonte + Ajout /amp + Correctif /crack

This commit is contained in:
Zachary Guénot
2023-05-28 02:55:30 +02:00
parent ef58e007bc
commit 011b0d6d68
17 changed files with 233 additions and 92 deletions

8
utilsCrack/torrent.js Normal file
View File

@@ -0,0 +1,8 @@
module.exports = torrent = (async (url, headers) => {
let response = await fetch(url, { headers, body: null, method: "GET" }).catch(console.error)
try {
let body = await response.text()
let file = body.split('<a href="')[2].split('">')[0]
return file
} catch (error) { console.error(error) }
})