ZennoLab

Automate everything

User Tools

Site Tools


en:addons:capmonster:areyouhumancaptcha

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:addons:capmonster:areyouhumancaptcha [2015/11/13 13:45]
vladz
en:addons:capmonster:areyouhumancaptcha [2015/11/23 14:51] (current)
afameless
Line 8: Line 8:
  
 <code csharp> <code csharp>
 +
  
 // Main settings // Main settings
Line 33: Line 34:
 var timeout = false; var timeout = false;
 // error loading file // error loading file
-var fileLoadingError = false; ​+var fileLoadingError = false
 +var usedURLs = new List<​string>​();
  
 // Open the form with audio task // Open the form with audio task
Line 79: Line 81:
  if (k == (tryLoadElement - 1)) timeout = true;  if (k == (tryLoadElement - 1)) timeout = true;
  }  }
- +   
 + foreach (var usedUrl in usedURLs) 
 +
 + if (usedUrl.Contains(href)) 
 + throw new Exception("​new audio file is absent"​);​ 
 +
 + usedURLs.Add(href);​ 
 +
  project.SendInfoToLog("​Downloading audio file", needShowMessages);​  project.SendInfoToLog("​Downloading audio file", needShowMessages);​
  try  try
en/addons/capmonster/areyouhumancaptcha.txt · Last modified: 2015/11/23 14:51 by afameless