summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/SimpleDereferer.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 16:51:14 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 16:51:14 +0200
commit1cfc960fd3ec384364ffb1e09d3ee98fc657eddb (patch)
treec0fda55382acc0147feb731a028456ac3e9c78ae /module/plugins/internal/SimpleDereferer.py
parent[YadiSk] Cleanup (diff)
downloadpyload-1cfc960fd3ec384364ffb1e09d3ee98fc657eddb.tar.xz
[SimpleDereferer][SimpleHoster] Update user-agent
Diffstat (limited to 'module/plugins/internal/SimpleDereferer.py')
-rw-r--r--module/plugins/internal/SimpleDereferer.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/plugins/internal/SimpleDereferer.py b/module/plugins/internal/SimpleDereferer.py
index 360cd7c30..41c6aa985 100644
--- a/module/plugins/internal/SimpleDereferer.py
+++ b/module/plugins/internal/SimpleDereferer.py
@@ -11,7 +11,7 @@ from module.plugins.internal.SimpleHoster import getFileURL, set_cookies
class SimpleDereferer(Crypter):
__name__ = "SimpleDereferer"
__type__ = "crypter"
- __version__ = "0.08"
+ __version__ = "0.09"
__pattern__ = r'^unmatchable$'
__config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True),
@@ -70,6 +70,7 @@ 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")
if isinstance(self.COOKIES, list):
set_cookies(self.req.cj, self.COOKIES)