summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hooks/MyfastfileCom.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-14 13:35:34 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-09-14 13:35:34 +0200
commit1066d65b9ed19d8e1b061c13fc0156d823fea800 (patch)
tree4c1fcd3b0660d2ccb3ce4d2abc0077f1a7876725 /pyload/plugins/hooks/MyfastfileCom.py
parentDocs cleanup + remove script directory (diff)
parent[FTP] Restore pattern. (diff)
downloadpyload-1066d65b9ed19d8e1b061c13fc0156d823fea800.tar.xz
Merge remote-tracking branch 'pyload/stable' into 0.4.10
Conflicts: module/plugins/accounts/MultiDebridCom.py module/plugins/accounts/MyfastfileCom.py module/plugins/hooks/MultiDebridCom.py module/plugins/hooks/MyfastfileCom.py module/plugins/hooks/Premium4Me.py module/plugins/hooks/PremiumTo.py module/plugins/hoster/MultiDebridCom.py module/plugins/hoster/MyfastfileCom.py module/plugins/hoster/Premium4Me.py module/plugins/hoster/PremiumTo.py pyload/plugins/accounts/MultiDebridCom.py pyload/plugins/accounts/Premium4Me.py pyload/plugins/hooks/MultiDebridCom.py pyload/plugins/hooks/Premium4Me.py pyload/plugins/hoster/MultiDebridCom.py pyload/plugins/hoster/Premium4Me.py
Diffstat (limited to 'pyload/plugins/hooks/MyfastfileCom.py')
-rw-r--r--pyload/plugins/hooks/MyfastfileCom.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/pyload/plugins/hooks/MyfastfileCom.py b/pyload/plugins/hooks/MyfastfileCom.py
new file mode 100644
index 000000000..311bc2212
--- /dev/null
+++ b/pyload/plugins/hooks/MyfastfileCom.py
@@ -0,0 +1,29 @@
+# -*- 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']