summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 15:19:37 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-10-19 15:19:37 +0200
commitbb68489d85d3aae3d050a8d198f6615aed379690 (patch)
tree852bda38cfece83b6d868379a6d0e8c43bda95aa /module
parentUpdate other plugins to support self.error (diff)
downloadpyload-bb68489d85d3aae3d050a8d198f6615aed379690.tar.xz
Change some self.req.load to self.load
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/MyfastfileCom.py6
-rw-r--r--module/plugins/hoster/PornhubCom.py2
-rw-r--r--module/plugins/hoster/UnrestrictLi.py4
3 files changed, 6 insertions, 6 deletions
diff --git a/module/plugins/hoster/MyfastfileCom.py b/module/plugins/hoster/MyfastfileCom.py
index 466bb95e8..8fbae3e0a 100644
--- a/module/plugins/hoster/MyfastfileCom.py
+++ b/module/plugins/hoster/MyfastfileCom.py
@@ -30,9 +30,9 @@ class MyfastfileCom(Hoster):
self.fail("No Myfastfile.com account provided")
else:
self.logDebug("Original URL: %s" % pyfile.url)
- page = self.req.load('http://myfastfile.com/api.php',
- get={'user': self.user, 'pass': self.account.getAccountData(self.user)['password'],
- 'link': pyfile.url})
+ page = self.load('http://myfastfile.com/api.php',
+ get={'user': self.user, 'pass': self.account.getAccountData(self.user)['password'],
+ 'link': pyfile.url})
self.logDebug("JSON data: " + page)
page = json_loads(page)
if page['status'] != 'ok':
diff --git a/module/plugins/hoster/PornhubCom.py b/module/plugins/hoster/PornhubCom.py
index fad915fb1..60b57d2c8 100644
--- a/module/plugins/hoster/PornhubCom.py
+++ b/module/plugins/hoster/PornhubCom.py
@@ -44,7 +44,7 @@ class PornhubCom(Hoster):
post_data += "\x02\x00\x02\x2d\x31\x02\x00\x20"
post_data += "add299463d4410c6d1b1c418868225f7"
- content = self.req.load(url, post=str(post_data))
+ content = self.load(url, post=str(post_data))
new_content = ""
for x in content:
diff --git a/module/plugins/hoster/UnrestrictLi.py b/module/plugins/hoster/UnrestrictLi.py
index 0cd8e315f..2acb7816d 100644
--- a/module/plugins/hoster/UnrestrictLi.py
+++ b/module/plugins/hoster/UnrestrictLi.py
@@ -43,8 +43,8 @@ class UnrestrictLi(Hoster):
else:
self.logDebug("Old URL: %s" % pyfile.url)
for _ in xrange(5):
- page = self.req.load('https://unrestrict.li/unrestrict.php',
- post={'link': pyfile.url, 'domain': 'long'})
+ page = self.load('https://unrestrict.li/unrestrict.php',
+ post={'link': pyfile.url, 'domain': 'long'})
self.logDebug("JSON data: " + page)
if page != '':
break