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/hoster/BitshareCom.py | |
parent | Cleanup + fixup + new lib (diff) | |
download | pyload-d60040cdc406b0541f0b3f9681a09894f845ba2b.tar.xz |
Diffstat (limited to 'pyload/plugin/hoster/BitshareCom.py')
-rw-r--r-- | pyload/plugin/hoster/BitshareCom.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/BitshareCom.py b/pyload/plugin/hoster/BitshareCom.py index 56beb7353..afea970eb 100644 --- a/pyload/plugin/hoster/BitshareCom.py +++ b/pyload/plugin/hoster/BitshareCom.py @@ -9,16 +9,16 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster class BitshareCom(SimpleHoster): - __name__ = "BitshareCom" - __type__ = "hoster" - __version__ = "0.53" + __name = "BitshareCom" + __type = "hoster" + __version = "0.53" - __pattern__ = r'http://(?:www\.)?bitshare\.com/(files/)?(?(1)|\?f=)(?P<ID>\w+)(?(1)/(?P<NAME>.+?)\.html)' - __config__ = [("use_premium", "bool", "Use premium account if available", True)] + __pattern = r'http://(?:www\.)?bitshare\.com/(files/)?(?(1)|\?f=)(?P<ID>\w+)(?(1)/(?P<NAME>.+?)\.html)' + __config = [("use_premium", "bool", "Use premium account if available", True)] - __description__ = """Bitshare.com hoster plugin""" - __license__ = "GPLv3" - __authors__ = [("Paul King", ""), + __description = """Bitshare.com hoster plugin""" + __license = "GPLv3" + __authors = [("Paul King", ""), ("fragonib", "fragonib[AT]yahoo[DOT]es")] @@ -41,7 +41,7 @@ class BitshareCom(SimpleHoster): self.account.relogin(self.user) # File id - m = re.match(self.__pattern__, pyfile.url) + m = re.match(self.__pattern, pyfile.url) self.file_id = max(m.group('ID1'), m.group('ID2')) self.logDebug("File id is [%s]" % self.file_id) @@ -59,7 +59,7 @@ class BitshareCom(SimpleHoster): self.retry() # File name - m = re.match(self.__pattern__, pyfile.url) + m = re.match(self.__pattern, pyfile.url) name1 = m.group('NAME') if m else None m = re.search(self.INFO_PATTERN, self.html) |