summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/ReloadCc.py
diff options
context:
space:
mode:
authorGravatar Nils Hesse <nphesse@gmail.com> 2012-11-08 13:17:28 +0100
committerGravatar Nils Hesse <nphesse@gmail.com> 2012-11-08 13:17:28 +0100
commit676b45df1589ce6bce14999f1753484c4f0d7f53 (patch)
tree58dae57405c35998e134b7ace2c22741af00baf7 /module/plugins/hoster/ReloadCc.py
parentAdded the reload.cc plugin (diff)
downloadpyload-676b45df1589ce6bce14999f1753484c4f0d7f53.tar.xz
Added some error codes to the reload.cc hoster plugin
Removed some leftover comments from account plugin
Diffstat (limited to 'module/plugins/hoster/ReloadCc.py')
-rw-r--r--module/plugins/hoster/ReloadCc.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/module/plugins/hoster/ReloadCc.py b/module/plugins/hoster/ReloadCc.py
index 4195afb89..bec7d2222 100644
--- a/module/plugins/hoster/ReloadCc.py
+++ b/module/plugins/hoster/ReloadCc.py
@@ -4,7 +4,7 @@ from module.common.json_layer import json_loads
class ReloadCc(Hoster):
__name__ = "ReloadCc"
- __version__ = "0.1"
+ __version__ = "0.1.1"
__type__ = "hoster"
__description__ = """Reload.Cc hoster plugin"""
@@ -49,9 +49,17 @@ class ReloadCc(Hoster):
self.download(data['link'], disposition=True)
# TODO: real error codes/messages
elif status == 400:
- self.fail("Invalid link")
- elif status == 404:
+ self.fail("Unsupported URI")
+ elif status == 401:
+ self.fail("Invalid login")
+ elif status == 402:
+ self.fail("Payment required")
+ elif status == 403:
+ self.fail("User is disabled")
+ elif status == 404:
self.offline()
+ elif status == 509:
+ self.fail("Fairuse traffic exceeded")
elif status >= 500:
self.tempOffline()
else: