diff options
author | oliverrahner <https://github.com/oliverrahner> | 2015-01-29 18:42:58 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-01-29 18:42:58 +0100 |
commit | 9619717bbba999a4792a40af6a82cf4ed87ace46 (patch) | |
tree | 993b9a8d04290b036317ae0f5f4f3577dc0e9fcb /module | |
parent | Some file encoding fixup + optimizations (diff) | |
download | pyload-9619717bbba999a4792a40af6a82cf4ed87ace46.tar.xz |
Update UploadedTo.py
Dirty fix for "File not downloaded for free users" error.
Should be fixed by handling free and premium downloads separately.
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hoster/UploadedTo.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/module/plugins/hoster/UploadedTo.py b/module/plugins/hoster/UploadedTo.py index 9aef13cde..150b69534 100644 --- a/module/plugins/hoster/UploadedTo.py +++ b/module/plugins/hoster/UploadedTo.py @@ -16,7 +16,7 @@ from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo class UploadedTo(SimpleHoster): __name__ = "UploadedTo" __type__ = "hoster" - __version__ = "0.78" + __version__ = "0.79" __pattern__ = r'https?://(?:www\.)?(uploaded\.(to|net)|ul\.to)(/file/|/?\?id=|.*?&id=|/)(?P<ID>\w+)' @@ -72,11 +72,12 @@ class UploadedTo(SimpleHoster): self.logError(_("Free-download capacities exhausted")) self.retry(24, 5 * 60) - m = re.search(r"Current waiting period: <span>(\d+)</span> seconds", self.html) - if m: - self.wait(m.group(1)) - else: - self.fail(_("File not downloadable for free users")) + if not self.premium: + m = re.search(r"Current waiting period: <span>(\d+)</span> seconds", self.html) + if m: + self.wait(m.group(1)) + else: + self.fail(_("File not downloadable for free users")) if "limit-size" in self.html: self.fail(_("File too big for free download")) |