summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/MegaRapidCz.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-07 01:23:55 +0200
commitb1759bc440cd6013837697eb8de540914f693ffd (patch)
treed170caf63d7f65e44d23ea2d91a65759a1665928 /module/plugins/hoster/MegaRapidCz.py
parent[Plugin] Fix decoding in load method (diff)
downloadpyload-b1759bc440cd6013837697eb8de540914f693ffd.tar.xz
No camelCase style anymore
Diffstat (limited to 'module/plugins/hoster/MegaRapidCz.py')
-rw-r--r--module/plugins/hoster/MegaRapidCz.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/module/plugins/hoster/MegaRapidCz.py b/module/plugins/hoster/MegaRapidCz.py
index ed6e0a3ad..e00efc1a9 100644
--- a/module/plugins/hoster/MegaRapidCz.py
+++ b/module/plugins/hoster/MegaRapidCz.py
@@ -8,7 +8,7 @@ from module.network.RequestFactory import getRequest
from module.plugins.internal.SimpleHoster import SimpleHoster, parseFileInfo
-def getInfo(urls):
+def get_info(urls):
h = getRequest()
h.c.setopt(pycurl.HTTPHEADER,
["Accept: text/html",
@@ -22,7 +22,7 @@ def getInfo(urls):
class MegaRapidCz(SimpleHoster):
__name__ = "MegaRapidCz"
__type__ = "hoster"
- __version__ = "0.56"
+ __version__ = "0.57"
__pattern__ = r'http://(?:www\.)?(share|mega)rapid\.cz/soubor/\d+/.+'
__config__ = [("use_premium", "bool", "Use premium account if available", True)]
@@ -48,10 +48,10 @@ class MegaRapidCz(SimpleHoster):
def setup(self):
- self.chunkLimit = 1
+ self.chunk_limit = 1
- def handlePremium(self, pyfile):
+ def handle_premium(self, pyfile):
m = re.search(self.LINK_PREMIUM_PATTERN, self.html)
if m:
self.link = m.group(1)