summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/FreeWayMe.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:20:59 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-27 21:20:59 +0100
commit575ce629081995766a231f0a9f3e97e3b79d23b1 (patch)
tree94066e87d5af5b9b1a11012eee11fcaf78bf8c68 /module/plugins/hooks/FreeWayMe.py
parent[MultiHook] Crypter support (diff)
downloadpyload-575ce629081995766a231f0a9f3e97e3b79d23b1.tar.xz
Update MultiHook based hooks
Diffstat (limited to 'module/plugins/hooks/FreeWayMe.py')
-rw-r--r--module/plugins/hooks/FreeWayMe.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/module/plugins/hooks/FreeWayMe.py b/module/plugins/hooks/FreeWayMe.py
index 0b71fc35b..f2a4f2d34 100644
--- a/module/plugins/hooks/FreeWayMe.py
+++ b/module/plugins/hooks/FreeWayMe.py
@@ -1,17 +1,16 @@
# -*- coding: utf-8 -*-
-from module.network.RequestFactory import getURL
from module.plugins.internal.MultiHook import MultiHook
class FreeWayMe(MultiHook):
__name__ = "FreeWayMe"
__type__ = "hook"
- __version__ = "0.12"
+ __version__ = "0.13"
- __config__ = [("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),
- ("hosterList", "str", "Hoster list (comma separated)", ""),
- ("unloadFailing", "bool", "Revert to stanard download if download fails", False),
+ __config__ = [("mode", "all;listed;unlisted", "Use for hosters (if supported):", "all"),
+ ("pluginlist", "str", "Hoster list (comma separated)", ""),
+ ("revertfailed", "bool", "Revert to stanard download if download fails", False),
("interval", "int", "Reload interval in hours (0 to disable)", 24)]
__description__ = """FreeWay.me hook plugin"""
@@ -19,7 +18,7 @@ class FreeWayMe(MultiHook):
__authors__ = [("Nicolas Giese", "james@free-way.me")]
- def getHoster(self):
- hostis = getURL("https://www.free-way.me/ajax/jd.php", get={'id': 3}).replace("\"", "").strip()
+ def getHosters(self):
+ hostis = self.getURL("https://www.free-way.me/ajax/jd.php", get={'id': 3}).replace("\"", "").strip()
self.logDebug("Hosters", hostis)
return [x.strip() for x in hostis.split(",") if x.strip()]