summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-21 01:58:31 +0100
committerGravatar GammaC0de <GammaC0de@users.noreply.github.com> 2015-12-21 01:58:31 +0100
commit96f918fae40bc144a839d3b49a768067d9de7971 (patch)
tree0d032121a209c1d9ad081276cfe51294ee269081 /module
parent[SimpleHoster] update (6) (diff)
downloadpyload-96f918fae40bc144a839d3b49a768067d9de7971.tar.xz
[UgouploadNet] update
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/UgouploadNet.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/module/plugins/hoster/UgouploadNet.py b/module/plugins/hoster/UgouploadNet.py
index 6e76a22fd..fec2e11d1 100644
--- a/module/plugins/hoster/UgouploadNet.py
+++ b/module/plugins/hoster/UgouploadNet.py
@@ -9,7 +9,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
class UgouploadNet(SimpleHoster):
__name__ = "UgouploadNet"
__type__ = "hoster"
- __version__ = "0.01"
+ __version__ = "0.02"
__status__ = "testing"
__pattern__ = r'https?://(?:www)?\.ugoupload\.net/\w{4}/.+'
@@ -39,6 +39,9 @@ class UgouploadNet(SimpleHoster):
def handle_free(self, pyfile):
+ if self.req.code == 404:
+ self.offline()
+
self.check_errors()
m = re.search(self.LINK_FREE_PATTERN, self.data)
@@ -47,7 +50,7 @@ class UgouploadNet(SimpleHoster):
response, challenge = recaptcha.challenge(self.RECAPTCHA_KEY)
self.download(m.group(1), post={'recaptcha_challenge_field': challenge,
- 'recaptcha_response_field': response,
- 'submit': "Submit",
- 'submitted': "1",
- 'd': "1"})
+ 'recaptcha_response_field': response,
+ 'submit': "Submit",
+ 'submitted': "1",
+ 'd': "1"})