diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-10 12:24:47 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-10-10 12:24:47 +0200 |
commit | 491dc6943323232f3d06003c950718c89316616d (patch) | |
tree | 9a7b3b890ce8815835378deb12e36dc40924958e /module/plugins/internal/SimpleCrypter.py | |
parent | [Addon] Persistent self.info (diff) | |
download | pyload-491dc6943323232f3d06003c950718c89316616d.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/SimpleCrypter.py')
-rw-r--r-- | module/plugins/internal/SimpleCrypter.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/module/plugins/internal/SimpleCrypter.py b/module/plugins/internal/SimpleCrypter.py index d4ecd3117..ba4235072 100644 --- a/module/plugins/internal/SimpleCrypter.py +++ b/module/plugins/internal/SimpleCrypter.py @@ -10,7 +10,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class SimpleCrypter(Crypter, SimpleHoster): __name__ = "SimpleCrypter" __type__ = "crypter" - __version__ = "0.66" + __version__ = "0.67" __status__ = "testing" __pattern__ = r'^unmatchable$' @@ -82,20 +82,16 @@ class SimpleCrypter(Crypter, SimpleHoster): #@TODO: Remove in 0.4.10 def _setup(self): orig_name = self.__name__ - self.__name__ = (orig_name + ".py").replace("Folder.py", "").replace(".py", "") - + self.__name__ = re.sub(r'Folder$', "", self.__name__) super(SimpleCrypter, self)._setup() - self.__name__ = orig_name #@TODO: Remove in 0.4.10 def load_account(self): orig_name = self.__name__ - self.__name__ = (orig_name + ".py").replace("Folder.py", "").replace(".py", "") - + self.__name__ = re.sub(r'Folder$', "", self.__name__) super(SimpleCrypter, self).load_account() - self.__name__ = orig_name @@ -106,7 +102,7 @@ class SimpleCrypter(Crypter, SimpleHoster): header = self.load(redirect, just_header=True) if header.get('location'): - self.link = header['location'] + self.link = header.get('location') else: break else: |