summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/BitshareCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:21:50 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 08:21:50 +0200
commit486adc1874e463b1563ad2394b216faff388b10d (patch)
tree58009056cb67e35930d49a9dd6af45adf6a8d434 /pyload/plugin/hoster/BitshareCom.py
parentFix https://github.com/pyload/pyload/issues/1349 (diff)
downloadpyload-486adc1874e463b1563ad2394b216faff388b10d.tar.xz
Prepare plugins to merging from stable
Diffstat (limited to 'pyload/plugin/hoster/BitshareCom.py')
-rw-r--r--pyload/plugin/hoster/BitshareCom.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/pyload/plugin/hoster/BitshareCom.py b/pyload/plugin/hoster/BitshareCom.py
index 471951a9e..4210d0f73 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)