summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleCrypter.py
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-07 20:17:29 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-07 20:17:29 +0100
commit02e6b873ad9971d4974a5b4f7a126dee3da60d2c (patch)
tree881795ef7532f26baf3296c024f0b58342665147 /module/plugins/internal/SimpleCrypter.py
parentMerge pull request #34 from stickell/fixes (diff)
downloadpyload-02e6b873ad9971d4974a5b4f7a126dee3da60d2c.tar.xz
SpeedLoadOrgFolder: crypter rewritten
Trivial changes to the SimpleCrypter class
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r--module/plugins/internal/SimpleCrypter.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py
index 69798bc0a..b4f4230a1 100644
--- a/module/plugins/internal/SimpleCrypter.py
+++ b/module/plugins/internal/SimpleCrypter.py
@@ -17,12 +17,12 @@
@author: zoidberg
"""
-from re import findall
+import re
from module.plugins.Crypter import Crypter
class SimpleCrypter(Crypter):
__name__ = "SimpleCrypter"
- __version__ = "0.01"
+ __version__ = "0.02"
__pattern__ = None
__type__ = "crypter"
__description__ = """Base crypter plugin"""
@@ -35,10 +35,9 @@ class SimpleCrypter(Crypter):
def decrypt(self, pyfile):
self.html = self.load(self.url)
- new_links = []
- new_links.extend(findall(self.LINK_PATTERN, self.html))
+ new_links = re.findall(self.LINK_PATTERN, self.html)
if new_links:
self.core.files.addLinks(new_links, self.pyfile.package().id)
else:
- self.fail('Could not extract any links') \ No newline at end of file
+ self.fail('Could not extract any links')