summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/RPNetBiz.py
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-05-29 23:33:10 +0200
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-05-29 23:33:10 +0200
commit844dfd92f590e531ca2f7fd86305fcbc13a03721 (patch)
tree5303bd07749b362dab071ada6197fe37dda85b27 /module/plugins/hoster/RPNetBiz.py
parent[BitshareCom] Code cosmetics (diff)
parent[SimpleHoster] Fix DB error (diff)
downloadpyload-844dfd92f590e531ca2f7fd86305fcbc13a03721.tar.xz
Merge pull request #1 from pyload/stable
sync stable
Diffstat (limited to 'module/plugins/hoster/RPNetBiz.py')
-rw-r--r--module/plugins/hoster/RPNetBiz.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/module/plugins/hoster/RPNetBiz.py b/module/plugins/hoster/RPNetBiz.py
index d6a67beb3..710faf25c 100644
--- a/module/plugins/hoster/RPNetBiz.py
+++ b/module/plugins/hoster/RPNetBiz.py
@@ -9,30 +9,29 @@ from module.common.json_layer import json_loads
class RPNetBiz(MultiHoster):
__name__ = "RPNetBiz"
__type__ = "hoster"
- __version__ = "0.13"
+ __version__ = "0.14"
- __description__ = """RPNet.biz hoster plugin"""
- __license__ = "GPLv3"
+ __pattern__ = r'https?://.+rpnet\.biz'
+ __config__ = [("use_premium", "bool", "Use premium account if available", True)]
- __pattern__ = r'https?://.*rpnet\.biz'
+ __description__ = """RPNet.biz multi-hoster plugin"""
+ __license__ = "GPLv3"
__authors__ = [("Dman", "dmanugm@gmail.com")]
def setup(self):
- self.chunkLimit = -1
- self.resumeDownload = True
+ self.chunkLimit = -1
- def handlePremium(self):
+ def handlePremium(self, pyfile):
user, data = self.account.selectAccount()
- self.logDebug("Original URL: %s" % self.pyfile.url)
# Get the download link
res = self.load("https://premium.rpnet.biz/client_api.php",
get={"username": user,
"password": data['password'],
- "action": "generate",
- "links": self.pyfile.url})
+ "action" : "generate",
+ "links" : pyfile.url})
self.logDebug("JSON data: %s" % res)
link_status = json_loads(res)['links'][0] # get the first link... since we only queried one