diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-18 23:13:05 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-08-18 23:13:05 +0200 |
commit | 4783bca34f4a01c23be64227e712d1948750d657 (patch) | |
tree | 91b0f7ce551976b9d0b231fb7df6fe379ea12105 /module/plugins | |
parent | Merge pull request #1752 from synweap15/rapideo-nopremium-signature-fix (diff) | |
parent | [UploadedTo] add PREMIUM_ONLY_PATTERN (diff) | |
download | pyload-4783bca34f4a01c23be64227e712d1948750d657.tar.xz |
Merge pull request #1750 from GammaC0de/patch-5
[UploadedTo] add PREMIUM_ONLY_PATTERN
Diffstat (limited to 'module/plugins')
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index c90f2bb0f..890a1698a 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -12,7 +12,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.96" + __version__ = "0.97" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)' @@ -31,6 +31,7 @@ class UploadedTo(SimpleHoster): OFFLINE_PATTERN = r'>Page not found' TEMP_OFFLINE_PATTERN = r'<title>uploaded\.net - Maintenance' + PREMIUM_ONLY_PATTERN = r'This file exceeds the max\. filesize which can be downloaded by free users\.' LINK_FREE_PATTERN = r"url:\s*'(.+?)'" LINK_PREMIUM_PATTERN = r'<div class="tfree".*\s*<form method="post" action="(.+?)"' @@ -77,6 +78,7 @@ class UploadedTo(SimpleHoster): self.html = self.load("http://uploaded.net/io/ticket/captcha/%s" % self.info['pattern']['ID'], post={'recaptcha_challenge_field': challenge, 'recaptcha_response_field' : response}) + self.check_errors() super(UploadedTo, self).handle_free(pyfile) self.check_errors() |