diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-14 16:47:49 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 21:22:11 +0100 |
commit | 8fe2fa85605c091369c8e69b36d1cded2cd9bbe0 (patch) | |
tree | a0d5745b1168fe887568fc6af1004c19ce44f4b6 /module/plugins/hoster/DataportCz.py | |
parent | [ExternalScripts] Update and fix (diff) | |
download | pyload-8fe2fa85605c091369c8e69b36d1cded2cd9bbe0.tar.xz |
Update hosters (1)
Diffstat (limited to 'module/plugins/hoster/DataportCz.py')
-rw-r--r-- | module/plugins/hoster/DataportCz.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/module/plugins/hoster/DataportCz.py b/module/plugins/hoster/DataportCz.py index 27e8a566b..5c9756b51 100644 --- a/module/plugins/hoster/DataportCz.py +++ b/module/plugins/hoster/DataportCz.py @@ -1,12 +1,12 @@ # -*- coding: utf-8 -*- -from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo +from module.plugins.internal.SimpleHoster import SimpleHoster class DataportCz(SimpleHoster): __name__ = "DataportCz" __type__ = "hoster" - __version__ = "0.45" + __version__ = "0.46" __status__ = "testing" __pattern__ = r'http://(?:www\.)?dataport\.cz/file/(.+)' @@ -44,7 +44,7 @@ class DataportCz(SimpleHoster): self.download("http://www.dataport.cz%s" % action, post=inputs) - check = self.check_file({'captcha': 'alert("\u0160patn\u011b opsan\u00fd k\u00f3d z obr\u00e1zu");', + check = self.scan_download({'captcha': 'alert("\u0160patn\u011b opsan\u00fd k\u00f3d z obr\u00e1zu");', 'slot' : 'alert("Je n\u00e1m l\u00edto, ale moment\u00e1ln\u011b nejsou'}) if check == "captcha": self.retry_captcha() @@ -52,6 +52,3 @@ class DataportCz(SimpleHoster): elif check == "slot": self.log_debug("No free slots - wait 60s and retry") self.retry(wait=60) - - -getInfo = create_getInfo(DataportCz) |