summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/XFileSharingPro.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:29:00 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-26 18:29:00 +0100
commitc3b406a00aba3fa549676a8181a5eb2a99d77c87 (patch)
treedc9c76f31e4c0baec0a53b6e2bd03182de08f518 /pyload/plugin/hoster/XFileSharingPro.py
parentCleanup (diff)
downloadpyload-c3b406a00aba3fa549676a8181a5eb2a99d77c87.tar.xz
Diffstat (limited to 'pyload/plugin/hoster/XFileSharingPro.py')
-rw-r--r--pyload/plugin/hoster/XFileSharingPro.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/XFileSharingPro.py b/pyload/plugin/hoster/XFileSharingPro.py
index e90826536..0696674df 100644
--- a/pyload/plugin/hoster/XFileSharingPro.py
+++ b/pyload/plugin/hoster/XFileSharingPro.py
@@ -6,15 +6,15 @@ from pyload.plugin.internal.XFSHoster import XFSHoster
class XFileSharingPro(XFSHoster):
- __name__ = "XFileSharingPro"
- __type__ = "hoster"
- __version__ = "0.45"
+ __name = "XFileSharingPro"
+ __type = "hoster"
+ __version = "0.45"
- __pattern__ = r'^unmatchable$'
+ __pattern = r'^unmatchable$'
- __description__ = """XFileSharingPro dummy hoster plugin for hook"""
- __license__ = "GPLv3"
- __authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
+ __description = """XFileSharingPro dummy hoster plugin for hook"""
+ __license = "GPLv3"
+ __authors = [("Walter Purcaro", "vuolter@gmail.com")]
URL_REPLACEMENTS = [("/embed-", "/")]
@@ -23,15 +23,15 @@ class XFileSharingPro(XFSHoster):
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.hosterPlugins[self.__name__]['pattern']
+ self.__pattern = self.core.pluginManager.hosterPlugins[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)