diff options
author | 2015-10-10 17:49:14 +0200 | |
---|---|---|
committer | 2015-10-10 17:49:14 +0200 | |
commit | 8e15c1af88b61cebda68a3b40352bf388c2010c7 (patch) | |
tree | bd1fb40094d907ccad41b4770f947cf9cac020cf /module/plugins/crypter/ShareLinksBiz.py | |
parent | Merge branch 'pr/n1997_GammaC0de' into stable (diff) | |
download | pyload-8e15c1af88b61cebda68a3b40352bf388c2010c7.tar.xz |
Spare code cosmetics (3)
Diffstat (limited to 'module/plugins/crypter/ShareLinksBiz.py')
-rw-r--r-- | module/plugins/crypter/ShareLinksBiz.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/crypter/ShareLinksBiz.py b/module/plugins/crypter/ShareLinksBiz.py index c189229ce..448ad3b15 100644 --- a/module/plugins/crypter/ShareLinksBiz.py +++ b/module/plugins/crypter/ShareLinksBiz.py @@ -8,7 +8,7 @@ from module.plugins.internal.Crypter import Crypter class ShareLinksBiz(Crypter): - __name__ = "ShareLinksBiz" + __name = "ShareLinksBiz" __type__ = "crypter" __version__ = "1.18" __status__ = "testing" @@ -70,12 +70,12 @@ class ShareLinksBiz(Crypter): if 's2l.biz' in url: url = self.load(url, just_header=True)['location'] - if re.match(self.__pattern__, url): - self.base_url = "http://www.%s.biz" % re.match(self.__pattern__, url).group(1) - self.file_id = re.match(self.__pattern__, url).group('ID') + if re.match(self.__pattern, url): + self.base_url = "http://www.%s.biz" % re.match(self.__pattern, url).group(1) + self.file_id = re.match(self.__pattern, url).group('ID') else: - self.log_debug("Could not initialize, URL [%s] does not match pattern [%s]" % (url, self.__pattern__)) + self.log_debug("Could not initialize, URL [%s] does not match pattern [%s]" % (url, self.__pattern)) self.fail(_("Unsupported download link")) self.package = pyfile.package() |