can handle blacklist
This commit is contained in:
@@ -102,14 +102,14 @@ class GeoCaptchaSolver {
|
||||
if (result) {
|
||||
let audioUrl = result[0];
|
||||
let fileName = crypto.randomUUID() + ".wav";
|
||||
wget({url: audioUrl, dest: dest_dir + fileName}, function (error, response, body) {
|
||||
wget({url: audioUrl, dest: dest_dir + fileName}, async function (error, response, body) {
|
||||
if (error) {
|
||||
console.log('--- error:');
|
||||
console.log(error); // error encountered
|
||||
} else {
|
||||
console.log('download the file successfully');
|
||||
// send request to get numbers
|
||||
sendRequest(dest_dir + fileName, callback);
|
||||
await sendRequest(dest_dir + fileName, callback);
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user