summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/UserAgentSwitcher.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 09:42:34 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-19 09:42:34 +0200
commit502517f37c7540b0bddb092e69386d9d6f08800c (patch)
treea90f2143063538f466b0283383a97067f7ea829d /module/plugins/hooks/UserAgentSwitcher.py
parentImprove fixurl method (diff)
downloadpyload-502517f37c7540b0bddb092e69386d9d6f08800c.tar.xz
Fix addons
Diffstat (limited to 'module/plugins/hooks/UserAgentSwitcher.py')
-rw-r--r--module/plugins/hooks/UserAgentSwitcher.py11
1 files changed, 2 insertions, 9 deletions
diff --git a/module/plugins/hooks/UserAgentSwitcher.py b/module/plugins/hooks/UserAgentSwitcher.py
index fdfe4b673..637f6c3ad 100644
--- a/module/plugins/hooks/UserAgentSwitcher.py
+++ b/module/plugins/hooks/UserAgentSwitcher.py
@@ -2,10 +2,10 @@
import pycurl
-from module.plugins.internal.Hook import Hook
+from module.plugins.internal.Addon import Addon
-class UserAgentSwitcher(Hook):
+class UserAgentSwitcher(Addon):
__name__ = "UserAgentSwitcher"
__type__ = "hook"
__version__ = "0.10"
@@ -20,13 +20,6 @@ class UserAgentSwitcher(Hook):
__authors__ = [("Walter Purcaro", "vuolter@gmail.com")]
- interval = 0 #@TODO: Remove in 0.4.10
-
-
- def setup(self):
- self.info = {} #@TODO: Remove in 0.4.10
-
-
def download_preparing(self, pyfile):
connecttimeout = self.get_config('connecttimeout')
maxredirs = self.get_config('maxredirs')