summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/BitshareCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-16 03:40:45 +0100
commitfcead1870013b6a970eca7878a66dbe783c80ea3 (patch)
tree9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/hoster/BitshareCom.py
parentInit cosmetics (diff)
downloadpyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz
Diffstat (limited to 'pyload/plugin/hoster/BitshareCom.py')
-rw-r--r--pyload/plugin/hoster/BitshareCom.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hoster/BitshareCom.py b/pyload/plugin/hoster/BitshareCom.py
index 3081451f7..781f31df1 100644
--- a/pyload/plugin/hoster/BitshareCom.py
+++ b/pyload/plugin/hoster/BitshareCom.py
@@ -9,15 +9,15 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, create_getInfo
class BitshareCom(SimpleHoster):
- __name = "BitshareCom"
- __type = "hoster"
- __version = "0.51"
+ __name__ = "BitshareCom"
+ __type__ = "hoster"
+ __version__ = "0.51"
- __pattern = r'http://(?:www\.)?bitshare\.com/(files/(?P<id1>\w+)(/(?P<name>.*?)\.html)?|\?f=(?P<id2>\w+))'
+ __pattern__ = r'http://(?:www\.)?bitshare\.com/(files/(?P<id1>\w+)(/(?P<name>.*?)\.html)?|\?f=(?P<id2>\w+))'
- __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")]
@@ -42,7 +42,7 @@ class BitshareCom(SimpleHoster):
self.pyfile = pyfile
# 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)
@@ -60,7 +60,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)
name2 = m.group('N') if m else None