summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 19:22:11 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 19:22:11 +0200
commit2f763ffd0c6f87c25ba814db3ed12e3504531efd (patch)
tree2de117be660bea765383376f50f9bc38dd0124a0 /module/plugins/internal
parentMerge pull request #1320 from sraedler/stable (diff)
downloadpyload-2f763ffd0c6f87c25ba814db3ed12e3504531efd.tar.xz
[SimpleDereferer][SimpleHoster] Update user-agent (3)
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/SimpleDereferer.py3
-rw-r--r--module/plugins/internal/SimpleHoster.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleDereferer.py b/module/plugins/internal/SimpleDereferer.py
index bdb2d773c..99077bfc3 100644
--- a/module/plugins/internal/SimpleDereferer.py
+++ b/module/plugins/internal/SimpleDereferer.py
@@ -71,7 +71,8 @@ class SimpleDereferer(Crypter):
self.html = ""
self.req.setOption("timeout", 120)
- self.req.http.c.setopt(pycurl.USERAGENT, "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0") #@NOTE: Work-around to old user-agent bug; remove in 0.4.10
+ self.req.http.c.setopt(pycurl.USERAGENT,
+ "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0") #@NOTE: Work-around to old user-agent bug; remove in 0.4.10
if isinstance(self.COOKIES, list):
set_cookies(self.req.cj, self.COOKIES)
diff --git a/module/plugins/internal/SimpleHoster.py b/module/plugins/internal/SimpleHoster.py
index 0474a5af5..87e136f08 100644
--- a/module/plugins/internal/SimpleHoster.py
+++ b/module/plugins/internal/SimpleHoster.py
@@ -434,7 +434,8 @@ class SimpleHoster(Hoster):
self.fail(_("Required account not found"))
self.req.setOption("timeout", 120)
- self.req.http.c.setopt(pycurl.USERAGENT, "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0") #@NOTE: Work-around to old user-agent bug; remove in 0.4.10
+ self.req.http.c.setopt(pycurl.USERAGENT,
+ "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0") #@NOTE: Work-around to old user-agent bug; remove in 0.4.10
if isinstance(self.COOKIES, list):
set_cookies(self.req.cj, self.COOKIES)