diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 10:29:55 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-04-13 10:29:55 +0200 |
commit | d60040cdc406b0541f0b3f9681a09894f845ba2b (patch) | |
tree | 69be3f4730c9ef4cf9f98f5b9ae17157a88abc85 /pyload/plugin/crypter/XFileSharingPro.py | |
parent | Cleanup + fixup + new lib (diff) | |
download | pyload-d60040cdc406b0541f0b3f9681a09894f845ba2b.tar.xz |
Diffstat (limited to 'pyload/plugin/crypter/XFileSharingPro.py')
-rw-r--r-- | pyload/plugin/crypter/XFileSharingPro.py | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/pyload/plugin/crypter/XFileSharingPro.py b/pyload/plugin/crypter/XFileSharingPro.py index 1ae40c6c5..9422789f3 100644 --- a/pyload/plugin/crypter/XFileSharingPro.py +++ b/pyload/plugin/crypter/XFileSharingPro.py @@ -6,31 +6,31 @@ from pyload.plugin.internal.XFSCrypter import XFSCrypter class XFileSharingPro(XFSCrypter): - __name__ = "XFileSharingPro" - __type__ = "crypter" - __version__ = "0.05" + __name = "XFileSharingPro" + __type = "crypter" + __version = "0.05" - __pattern__ = r'^unmatchable$' - __config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True), + __pattern = r'^unmatchable$' + __config = [("use_subfolder" , "bool", "Save package to subfolder" , True), ("subfolder_per_pack", "bool", "Create a subfolder for each package", True)] - __description__ = """XFileSharingPro dummy folder decrypter plugin for hook""" - __license__ = "GPLv3" - __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + __description = """XFileSharingPro dummy folder decrypter plugin for hook""" + __license = "GPLv3" + __authors = [("Walter Purcaro", "vuolter@gmail.com")] def _log(self, type, args): msg = " | ".join(str(a).strip() for a in args if a) logger = getattr(self.log, type) - logger("%s: %s: %s" % (self.__name__, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) + logger("%s: %s: %s" % (self.__name, self.HOSTER_NAME, msg or _("%s MARK" % type.upper()))) def init(self): super(XFileSharingPro, self).init() - self.__pattern__ = self.core.pluginManager.crypterPlugins[self.__name__]['pattern'] + self.__pattern = self.core.pluginManager.crypterPlugins[self.__name]['pattern'] - self.HOSTER_DOMAIN = re.match(self.__pattern__, self.pyfile.url).group("DOMAIN").lower() + self.HOSTER_DOMAIN = re.match(self.__pattern, self.pyfile.url).group("DOMAIN").lower() self.HOSTER_NAME = "".join(part.capitalize() for part in re.split(r'(\.|\d+)', self.HOSTER_DOMAIN) if part != '.') account = self.core.accountManager.getAccountPlugin(self.HOSTER_NAME) |