diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-10-18 13:49:08 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-10-18 13:49:08 +0200 |
commit | c9ef02f1d748738ffaa197aa8a6f94b69a4237b3 (patch) | |
tree | 78ba3d59eb723b0be172e2231d97ce1c90e536b3 /module/plugins/accounts/XFileSharingPro.py | |
parent | [XFSPAccount] Set HOSTER_NAME (instead HOSTER_URL) as the mandatory attribute (diff) | |
download | pyload-c9ef02f1d748738ffaa197aa8a6f94b69a4237b3.tar.xz |
New account XFileSharingPro
Diffstat (limited to 'module/plugins/accounts/XFileSharingPro.py')
-rw-r--r-- | module/plugins/accounts/XFileSharingPro.py | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/module/plugins/accounts/XFileSharingPro.py b/module/plugins/accounts/XFileSharingPro.py new file mode 100644 index 000000000..cd09c076d --- /dev/null +++ b/module/plugins/accounts/XFileSharingPro.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +import re + +from module.plugins.internal.XFSPAccount import XFSPAccount + + +class XFileSharingPro(XFSPAccount): + __name__ = "XFileSharingPro" + __type__ = "crypter" + __version__ = "0.01" + + __description__ = """XFileSharingPro dummy account plugin for hook""" + __license__ = "GPLv3" + __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + + + def init(self): + pattern = self.core.pluginManager.hosterPlugins[self.__name__]['pattern'] + self.HOSTER_NAME = re.match(pattern, self.pyfile.url).group(1).lower() |