summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/UserAgentSwitcher.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 21:06:10 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:38:26 +0200
commit5a139055ae658d3a05cbb658cbd66aeae0d01db5 (patch)
treeb283d2f470fe2a4115474959e4982a59bc686067 /module/plugins/hooks/UserAgentSwitcher.py
parentMerge pull request #1537 from GammaC0de/patch-1 (diff)
downloadpyload-5a139055ae658d3a05cbb658cbd66aeae0d01db5.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/UserAgentSwitcher.py')
-rw-r--r--module/plugins/hooks/UserAgentSwitcher.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/plugins/hooks/UserAgentSwitcher.py b/module/plugins/hooks/UserAgentSwitcher.py
index 0637936f9..0504ec9d0 100644
--- a/module/plugins/hooks/UserAgentSwitcher.py
+++ b/module/plugins/hooks/UserAgentSwitcher.py
@@ -27,7 +27,7 @@ class UserAgentSwitcher(Hook):
self.info = {} #@TODO: Remove in 0.4.10
- def downloadPreparing(self, pyfile):
+ def download_preparing(self, pyfile):
connecttimeout = self.getConfig('connecttimeout')
maxredirs = self.getConfig('maxredirs')
useragent = self.getConfig('useragent').encode("utf8", "replace") #@TODO: Remove `encode` in 0.4.10