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:59:23 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-07 16:59:23 +0200
commit665770b16e6ace161e9c358c6b23f1f269b5dd4b (patch)
tree8ce46a04e7081bb85d235e53c8bf47c34572e57e /module/plugins/internal/SimpleDereferer.py
parent[SimpleDereferer][SimpleHoster] Update user-agent (diff)
downloadpyload-665770b16e6ace161e9c358c6b23f1f269b5dd4b.tar.xz
[SimpleDereferer] Update user-agent (2)
Diffstat (limited to 'module/plugins/internal/SimpleDereferer.py')
-rw-r--r--module/plugins/internal/SimpleDereferer.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/plugins/internal/SimpleDereferer.py b/module/plugins/internal/SimpleDereferer.py
index 41c6aa985..bdb2d773c 100644
--- a/module/plugins/internal/SimpleDereferer.py
+++ b/module/plugins/internal/SimpleDereferer.py
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
+import pycurl
import re
from urllib import unquote
@@ -11,7 +12,7 @@ from module.plugins.internal.SimpleHoster import getFileURL, set_cookies
class SimpleDereferer(Crypter):
__name__ = "SimpleDereferer"
__type__ = "crypter"
- __version__ = "0.09"
+ __version__ = "0.10"
__pattern__ = r'^unmatchable$'
__config__ = [("use_subfolder" , "bool", "Save package to subfolder" , True),
@@ -70,7 +71,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")
+ 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
if isinstance(self.COOKIES, list):
set_cookies(self.req.cj, self.COOKIES)