try:
        import adecaptcha.clslib as clslib
        adecaptcha_available = True
except ImportError:
        adecaptcha_available = False

import os.path



class UlozTo(object):
    __name__ = "UlozTo"
    def __init__(self, plugin=None):
        pass
        self._plugin=plugin


    def recognize(self, audio):
        """ Audio decoding - more info could be found at https://launchpad.net/adecaptcha """
        #print "!!!CAPTCHA :", audio
        if adecaptcha_available:
                cfg_file=os.path.join(os.path.split(clslib.__file__)[0], 'ulozto.cfg')
                text= clslib.classify_audio_file(audio, cfg_file)
                return text
        else:
                pass

@@ -1,161 +1,162 @@
-try:%0A        import adecaptcha.clslib as clslib%0A        adecaptcha_available = True%0Aexcept ImportError:%0A        adecaptcha_available = False%0A%0Aimport os.path%0A
+# -*- coding: utf-8 -*-%0A%0Aimport os.path%0A%0Afrom module.plugins.internal.OCR import OCR%0A%0Atry:%0A    import adecaptcha.clslib as clslib%0Aexcept ImportError:%0A    pass
 %0A%0A%0Ac
@@ -171,14 +171,11 @@
 zTo(
-object
+OCR
 ):%0A 
@@ -187,16 +187,19 @@
 name__ =
+   
  %22UlozTo
@@ -208,49 +208,261 @@
     
-def __init__(self, plugin=None):%0A
+__type__    = %22captcha%22%0A    __version__ = %220.02%22%0A    __status__  = %22testing%22%0A%0A    __description__ = %22%22%22UlozTo audio captcha service plugin%22%22%22%0A    __license__     = %22GPLv3%22%0A    __authors__     = %5B(%22sodd%22,      None                        ),%0A     
         
 pass
@@ -461,21 +461,18 @@
     
-pass%0A
+  
         
 self
@@ -471,27 +471,52 @@
     
-self._plugin=plugin
+(%22GammaC0de%22, %22nitzo2001%5BAT%5Dyahoo%5BDOT%5Dcom%22)%5D
 %0A%0A%0A 
@@ -689,37 +689,13 @@
     
-if adecaptcha_available:%0A    
+try:%0A
     
@@ -710,17 +710,19 @@
 cfg_file
-=
+ = 
 os.path.
@@ -791,16 +791,13 @@
     
-  
-  
 text
+ 
 = cl
@@ -850,20 +850,16 @@
         
-    
 return t
@@ -862,16 +862,17 @@
 rn text%0A
+%0A
         
@@ -876,30 +876,199 @@
    e
-lse:%0A                pass
+xcept NameError:%0A            self.log_error(_(%22Unable to decode audio captcha%22),%0A                           _(%22Please install adecaptcha library from https://github.com/izderadicka/adecaptcha%22))
 %0A

fix #2377