summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/hoster/RapidgatorNet.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/hoster/RapidgatorNet.py')
-rw-r--r--pyload/plugin/hoster/RapidgatorNet.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pyload/plugin/hoster/RapidgatorNet.py b/pyload/plugin/hoster/RapidgatorNet.py
index 10b6403a1..b05b0d5d0 100644
--- a/pyload/plugin/hoster/RapidgatorNet.py
+++ b/pyload/plugin/hoster/RapidgatorNet.py
@@ -1,9 +1,8 @@
# -*- coding: utf-8 -*-
+import pycurl
import re
-from pycurl import HTTPHEADER
-
from pyload.utils import json_loads
from pyload.network.HTTPRequest import BadHeader
from pyload.plugin.captcha.AdsCaptcha import AdsCaptcha
@@ -104,7 +103,7 @@ class RapidgatorNet(SimpleHoster):
self.logDebug(jsvars)
self.req.http.lastURL = pyfile.url
- self.req.http.c.setopt(HTTPHEADER, ["X-Requested-With: XMLHttpRequest"])
+ self.req.http.c.setopt(pycurl.HTTPHEADER, ["X-Requested-With: XMLHttpRequest"])
url = "http://rapidgator.net%s?fid=%s" % (
jsvars.get('startTimerUrl', '/download/AjaxStartTimer'), jsvars['fid'])
@@ -117,7 +116,7 @@ class RapidgatorNet(SimpleHoster):
jsvars.update(self.getJsonResponse(url))
self.req.http.lastURL = pyfile.url
- self.req.http.c.setopt(HTTPHEADER, ["X-Requested-With:"])
+ self.req.http.c.setopt(pycurl.HTTPHEADER, ["X-Requested-With:"])
url = "http://rapidgator.net%s" % jsvars.get('captchaUrl', '/download/captcha')
self.html = self.load(url)