updates
This commit is contained in:
parent
b7d4aae21c
commit
f7826664a9
@ -82,10 +82,11 @@ async function newCheck() {
|
|||||||
return user
|
return user
|
||||||
})
|
})
|
||||||
for (let userAccount of userAccounts) {
|
for (let userAccount of userAccounts) {
|
||||||
console.log(userAccount.username)
|
console.log(userAccount.username, userAccount.passwordDecryped)
|
||||||
for (let streamURL of streamURLS) {
|
for (let streamURL of streamURLS) {
|
||||||
process.stdout.write('.')
|
process.stdout.write('.')
|
||||||
let url = await buildURL(streamURL, userAccount.username, userAccount.passwordDecryped)
|
let url = await buildURL(streamURL, userAccount.username, userAccount.passwordDecryped)
|
||||||
|
// console.log(url)
|
||||||
let t = await gotRequest(url)
|
let t = await gotRequest(url)
|
||||||
let body = t.body
|
let body = t.body
|
||||||
if (t.statusCode == 200 && body !== "") {
|
if (t.statusCode == 200 && body !== "") {
|
||||||
@ -94,21 +95,15 @@ async function newCheck() {
|
|||||||
if (body.user_info.auth) {
|
if (body.user_info.auth) {
|
||||||
// var date = new Date(body.user_info.exp_date * 1000).toLocaleDateString('en-GB')
|
// var date = new Date(body.user_info.exp_date * 1000).toLocaleDateString('en-GB')
|
||||||
process.stdout.write('\n')
|
process.stdout.write('\n')
|
||||||
console.log('Match - ' + userAccount.username + ' - ' + streamURL + ' - Expires - ' + body.user_info.exp_date)
|
console.log(`Match - ${userAccount.username} - ${streamURL} - Expires - ${body.user_info.exp_date}`)
|
||||||
await updateStreamData(userAccount, streamURL, body.user_info.exp_date)
|
await updateStreamData(userAccount, streamURL, body.user_info.exp_date)
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log('Error - ' + userAccount.username + ' - ' + streamURL + ' - Expires - ' + body.user_info.exp_date)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// }
|
|
||||||
|
|
||||||
// console.log(userAccounts)
|
|
||||||
// retrievePasswordFromDB()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// main()
|
// main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user