diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-03-26 12:44:15 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-03-26 12:44:15 +0100 |
commit | ce103ce1e60661f7bcdf6a033335134de61d48b1 (patch) | |
tree | 29b9421062cc8341dc10b6ca65e9a64802c3db71 /pyload/plugin/internal/SimpleHoster.py | |
parent | .min.css -> .css (diff) | |
download | pyload-ce103ce1e60661f7bcdf6a033335134de61d48b1.tar.xz |
Prepare to merging
Diffstat (limited to 'pyload/plugin/internal/SimpleHoster.py')
-rw-r--r-- | pyload/plugin/internal/SimpleHoster.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/internal/SimpleHoster.py b/pyload/plugin/internal/SimpleHoster.py index 77d21f2d7..ac7f5aa4d 100644 --- a/pyload/plugin/internal/SimpleHoster.py +++ b/pyload/plugin/internal/SimpleHoster.py @@ -244,15 +244,15 @@ def secondsToMidnight(gmt=0): class SimpleHoster(Hoster): - __name = "SimpleHoster" - __type = "hoster" - __version = "1.15" + __name__ = "SimpleHoster" + __type__ = "hoster" + __version__ = "1.15" - __pattern = r'^unmatchable$' + __pattern__ = r'^unmatchable$' - __description = """Simple hoster plugin""" - __license = "GPLv3" - __authors = [("zoidberg", "zoidberg@mujmail.cz"), + __description__ = """Simple hoster plugin""" + __license__ = "GPLv3" + __authors__ = [("zoidberg", "zoidberg@mujmail.cz"), ("stickell", "l.stickell@yahoo.it"), ("Walter Purcaro", "vuolter@gmail.com")] @@ -339,7 +339,7 @@ class SimpleHoster(Hoster): online = False if info['status'] != 2 else True try: - info['pattern'] = re.match(cls.__pattern, url).groupdict() #: pattern groups will be saved here + info['pattern'] = re.match(cls.__pattern__, url).groupdict() #: pattern groups will be saved here except Exception: info['pattern'] = {} @@ -435,8 +435,8 @@ class SimpleHoster(Hoster): set_cookies(self.req.cj, self.COOKIES) if (self.MULTI_HOSTER - and (self.__pattern != self.core.pluginManager.hosterPlugins[self.__name]['pattern'] - or re.match(self.__pattern, self.pyfile.url) is None)): + and (self.__pattern__ != self.core.pluginManager.hosterPlugins[self.__name__]['pattern'] + or re.match(self.__pattern__, self.pyfile.url) is None)): self.multihost = True return |