diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/internal/Captcha.py | 6 | ||||
-rw-r--r-- | module/plugins/internal/Extractor.py | 4 | ||||
-rw-r--r-- | module/plugins/internal/OCR.py | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/module/plugins/internal/Captcha.py b/module/plugins/internal/Captcha.py index 942021f26..1d23eb16e 100644 --- a/module/plugins/internal/Captcha.py +++ b/module/plugins/internal/Captcha.py @@ -16,8 +16,8 @@ class Captcha(Plugin): __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - def __init__(self, plugin): #@TODO: pass pyfile instead plugin, so store plugin's html in its associated pyfile as data - self.pyload = plugin.core + def __init__(self, plugin): #@TODO: Pass pyfile instead plugin, so store plugin's html in its associated pyfile as data + self.pyload = plugin.pyload self.info = {} #: Provide information in dict here self.plugin = plugin @@ -79,7 +79,7 @@ class Captcha(Plugin): if self.plugin.pyfile.abort: self.abort() - result = OCR(self.plugin.pyfile).recognize(tmp_img.name) + result = OCR(self.plugin).recognize(tmp_img.name) else: result = self.recognize(tmp_img.name) diff --git a/module/plugins/internal/Extractor.py b/module/plugins/internal/Extractor.py index 3d2859f54..7189ddc25 100644 --- a/module/plugins/internal/Extractor.py +++ b/module/plugins/internal/Extractor.py @@ -75,7 +75,7 @@ class Extractor(Plugin): return targets - def __init__(self, manager, filename, out, + def __init__(self, plugin, filename, out, fullpath=True, overwrite=False, excludefiles=[], @@ -86,7 +86,7 @@ class Extractor(Plugin): """ Initialize extractor for specific file """ - self.pyload = manager.core + self.pyload = plugin.pyload self.info = {} #: Provide information in dict here self.filename = filename diff --git a/module/plugins/internal/OCR.py b/module/plugins/internal/OCR.py index 5c22866c8..15d3fc305 100644 --- a/module/plugins/internal/OCR.py +++ b/module/plugins/internal/OCR.py @@ -28,8 +28,8 @@ class OCR(Plugin): __authors__ = [("pyLoad Team", "admin@pyload.org")] - def __init__(self, pyfile): - self.pyload = pyfile.m.core + def __init__(self, plugin): + self.pyload = plugin.pyload self.info = {} #: Provide information in dict here self.init() |