diff options
author | Stefano <l.stickell@yahoo.it> | 2013-07-21 15:03:21 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-07-21 15:03:21 +0200 |
commit | 4b61d36bf18931df0a9720047b3619ce245f8a1b (patch) | |
tree | fa6214ca6c85eb547dfe7de1ec7502ff3ce71793 /module/plugins/crypter/WiiReloadedOrg.py | |
parent | Normalize line endings to avoid line endings merge conflicts (diff) | |
download | pyload-4b61d36bf18931df0a9720047b3619ce245f8a1b.tar.xz |
Fixed PEP 8 violations in Crypters
Diffstat (limited to 'module/plugins/crypter/WiiReloadedOrg.py')
-rw-r--r-- | module/plugins/crypter/WiiReloadedOrg.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/module/plugins/crypter/WiiReloadedOrg.py b/module/plugins/crypter/WiiReloadedOrg.py index ba101892d..31c041bf0 100644 --- a/module/plugins/crypter/WiiReloadedOrg.py +++ b/module/plugins/crypter/WiiReloadedOrg.py @@ -1,8 +1,8 @@ - import re from module.plugins.Crypter import Crypter + class WiiReloadedOrg(Crypter): __name__ = "WiiReloadedOrg" __type__ = "crypter" @@ -12,16 +12,15 @@ class WiiReloadedOrg(Crypter): __description__ = """Wii-Reloaded.org Crypter Plugin""" __author_name__ = ("hzpz") __author_mail__ = ("none") - - + def decrypt(self, pyfile): url = pyfile.url src = self.req.load(str(url)) - + ids = re.findall(r"onClick=\"popup_dl\((.+)\)\"", src) if len(ids) == 0: self.fail("Unable to decrypt links, this plugin probably needs to be updated") - + packageName = self.pyfile.package().name if self.getConfig("changeName"): packageNameMatch = re.search(r"<div id=\"foldername\">(.+)</div>", src) @@ -29,9 +28,9 @@ class WiiReloadedOrg(Crypter): self.logWarning("Unable to get folder name, this plugin probably needs to be updated") else: packageName = packageNameMatch.group(1) - + self.pyfile.package().password = "wii-reloaded.info" - + self.logDebug("Processing %d links" % len(ids)) links = [] for id in ids: @@ -47,6 +46,6 @@ class WiiReloadedOrg(Crypter): self.offline() self.logDebug("Decrypted link: %s" % redirectLocation) links.append(redirectLocation) - + self.logDebug("Decrypted %d links" % len(links)) - self.packages.append((packageName, links, packageName))
\ No newline at end of file + self.packages.append((packageName, links, packageName)) |