diff options
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/Crypter.py | 2 | ||||
-rw-r--r-- | module/plugins/container/LinkList.py | 2 | ||||
-rw-r--r-- | module/plugins/hooks/HotFolder.py | 7 |
3 files changed, 7 insertions, 4 deletions
diff --git a/module/plugins/Crypter.py b/module/plugins/Crypter.py index 0abd11e82..0cff3bf1c 100644 --- a/module/plugins/Crypter.py +++ b/module/plugins/Crypter.py @@ -60,7 +60,7 @@ class Crypter(Plugin): """ create new packages from self.packages """ for pack in self.packages: - self.log.info(_("Parsed package %(name)s with %(len)d links") % { "name" : pack[0], "len" : len(pack[1]) } ) + self.log.debug(_("Parsed package %(name)s with %(len)d links") % { "name" : pack[0], "len" : len(pack[1]) } ) self.core.server_methods.add_package(pack[0], pack[1], self.pyfile.package().queue) diff --git a/module/plugins/container/LinkList.py b/module/plugins/container/LinkList.py index 1ddc4ef0e..22a63c78a 100644 --- a/module/plugins/container/LinkList.py +++ b/module/plugins/container/LinkList.py @@ -9,7 +9,7 @@ class LinkList(Container): __version__ = "0.11" __pattern__ = r".+\.txt$" __description__ = """Read Link Lists in txt format""" - __config__ = [("clear", "Clear LinkList", "bool", True)] + __config__ = [("clear", "bool", "Clear Linklist after adding", True)] __author_name__ = ("spoob", "jeix") __author_mail__ = ("spoob@pyload.org", "jeix@hasnomail.com") diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 2e210c8a2..e652179ce 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -59,10 +59,13 @@ class HotFolder(Hook): f = open(self.getConfig("file"), "rb") content = f.read().strip() f.close() + f = open(self.getConfig("file"), "wb") + f.close() if content: - name = "%s_%s.txt" % (self.getConfig("file"), time.strftime("%H-%M-%S %d%b%Y") ) + name = "%s_%s.txt" % (self.getConfig("file"), time.strftime("%H-%M-%S_%d%b%Y") ) - f = open(join(self.getConfig("folder"), name), "wb") + f = open(join(self.getConfig("folder"), "finished", name), "wb") + f.write(content) f.close() self.core.server_methods.add_package(f.name, [f.name], 1) |