From 56f75b634356602c5f7a93f65a1260fe2c0d66d8 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Fri, 3 Oct 2014 19:58:50 +0200 Subject: Rename hooks directory to addon --- pyload/plugins/hooks/MyfastfileCom.py | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 pyload/plugins/hooks/MyfastfileCom.py (limited to 'pyload/plugins/hooks/MyfastfileCom.py') diff --git a/pyload/plugins/hooks/MyfastfileCom.py b/pyload/plugins/hooks/MyfastfileCom.py deleted file mode 100644 index 216dcaf5d..000000000 --- a/pyload/plugins/hooks/MyfastfileCom.py +++ /dev/null @@ -1,29 +0,0 @@ -# -*- coding: utf-8 -*- - -from pyload.network.RequestFactory import getURL -from pyload.plugins.internal.MultiHoster import MultiHoster -from pyload.utils import json_loads - - -class MyfastfileCom(MultiHoster): - __name__ = "MyfastfileCom" - __type__ = "hook" - __version__ = "0.02" - - __config__ = [("activated", "bool", "Activated", False), - ("hosterListMode", "all;listed;unlisted", "Use for hosters (if supported)", "all"), - ("hosterList", "str", "Hoster list (comma separated)", ""), - ("unloadFailing", "bool", "Revert to standard download if download fails", False), - ("interval", "int", "Reload interval in hours (0 to disable)", 24)] - - __description__ = """Myfastfile.com hook plugin""" - __author_name__ = "stickell" - __author_mail__ = "l.stickell@yahoo.it" - - - def getHoster(self): - json_data = getURL('http://myfastfile.com/api.php?hosts', decode=True) - self.logDebug("JSON data", json_data) - json_data = json_loads(json_data) - - return json_data['hosts'] -- cgit v1.2.3