summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/ExtabitCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/ExtabitCom.py')
-rw-r--r--pyload/plugin/hoster/ExtabitCom.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/pyload/plugin/hoster/ExtabitCom.py b/pyload/plugin/hoster/ExtabitCom.py
index 16f74c072..c0fa782fa 100644
--- a/pyload/plugin/hoster/ExtabitCom.py
+++ b/pyload/plugin/hoster/ExtabitCom.py
@@ -9,16 +9,16 @@ from pyload.plugin.internal.SimpleHoster import SimpleHoster, secondsToMidnight
class ExtabitCom(SimpleHoster):
- __name = "ExtabitCom"
- __type = "hoster"
- __version = "0.65"
+ __name__ = "ExtabitCom"
+ __type__ = "hoster"
+ __version__ = "0.65"
- __pattern = r'http://(?:www\.)?extabit\.com/(file|go|fid)/(?P<ID>\w+)'
- __config = [("use_premium", "bool", "Use premium account if available", True)]
+ __pattern__ = r'http://(?:www\.)?extabit\.com/(file|go|fid)/(?P<ID>\w+)'
+ __config__ = [("use_premium", "bool", "Use premium account if available", True)]
- __description = """Extabit.com hoster plugin"""
- __license = "GPLv3"
- __authors = [("zoidberg", "zoidberg@mujmail.cz")]
+ __description__ = """Extabit.com hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
NAME_PATTERN = r'<th>File:</th>\s*<td class="col-fileinfo">\s*<div title="(?P<N>[^"]+)">'
@@ -41,7 +41,7 @@ class ExtabitCom(SimpleHoster):
self.wait(secondsToMidnight(gmt=2), True)
self.logDebug("URL: " + self.req.http.lastEffectiveURL)
- m = re.match(self.__pattern, self.req.http.lastEffectiveURL)
+ m = re.match(self.__pattern__, self.req.http.lastEffectiveURL)
fileID = m.group('ID') if m else self.info['pattern']['ID']
m = re.search(r'recaptcha/api/challenge\?k=(\w+)', self.html)