diff options
author | 2015-04-09 20:11:11 +0200 | |
---|---|---|
committer | 2015-04-09 20:11:11 +0200 | |
commit | f53d57b902b71708f05a3125872ec5d34ebe65b9 (patch) | |
tree | 2f8756396411a98331cb937e42ded87da2c9f253 /pyload/plugin/OCR.py | |
parent | Merge remote-tracking branch 'origin/0.4.10' into 0.4.10 (diff) | |
download | pyload-f53d57b902b71708f05a3125872ec5d34ebe65b9.tar.xz |
fix: OboomCom and SmoozedCom with beaker >= v1.7.x
fix: run plugins this fix makes the plugin attribute "__name" obsolet
Diffstat (limited to 'pyload/plugin/OCR.py')
-rw-r--r-- | pyload/plugin/OCR.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/plugin/OCR.py b/pyload/plugin/OCR.py index 109dd1843..01ba6d534 100644 --- a/pyload/plugin/OCR.py +++ b/pyload/plugin/OCR.py @@ -60,11 +60,11 @@ class OCR(Base): def run_tesser(self, subset=False, digits=True, lowercase=True, uppercase=True): #tmpTif = tempfile.NamedTemporaryFile(suffix=".tif") try: - tmpTif = open(fs_join("tmp", "tmpTif_%s.tif" % self.__name), "wb") + tmpTif = open(fs_join("tmp", "tmpTif_%s.tif" % self.__class__.__name__), "wb") tmpTif.close() #tmpTxt = tempfile.NamedTemporaryFile(suffix=".txt") - tmpTxt = open(fs_join("tmp", "tmpTxt_%s.txt" % self.__name), "wb") + tmpTxt = open(fs_join("tmp", "tmpTxt_%s.txt" % self.__class__.__name__), "wb") tmpTxt.close() except IOError, e: @@ -83,7 +83,7 @@ class OCR(Base): if subset and (digits or lowercase or uppercase): #tmpSub = tempfile.NamedTemporaryFile(suffix=".subset") - with open(fs_join("tmp", "tmpSub_%s.subset" % self.__name), "wb") as tmpSub: + with open(fs_join("tmp", "tmpSub_%s.subset" % self.__class__.__name__), "wb") as tmpSub: tmpSub.write("tessedit_char_whitelist ") if digits: |