Grosse refonte + Ajout /amp + Correctif /crack
This commit is contained in:
8
utilsCrack/torrent.js
Normal file
8
utilsCrack/torrent.js
Normal 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) }
|
||||
})
|
||||
Reference in New Issue
Block a user