From 8511cd8a8991b6b405d5530c473b96fb046d9d0e Mon Sep 17 00:00:00 2001 From: Pavol Babincak Date: Fri, 11 Nov 2011 08:04:54 +0100 Subject: Detect offline files on HotfileCom --- module/plugins/hoster/HotfileCom.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/module/plugins/hoster/HotfileCom.py b/module/plugins/hoster/HotfileCom.py index 96927a9fc..a51d2f062 100644 --- a/module/plugins/hoster/HotfileCom.py +++ b/module/plugins/hoster/HotfileCom.py @@ -37,6 +37,8 @@ class HotfileCom(Hoster): __author_name__ = ("sitacuisses","spoob","mkaay") __author_mail__ = ("sitacuisses@yhoo.de","spoob@pyload.org","mkaay@mkaay.de") + FILE_OFFLINE_PATTERN = r'File is removed' + def setup(self): self.html = [None, None] self.wantReconnect = False @@ -73,7 +75,10 @@ class HotfileCom(Hoster): if not self.account: self.downloadHTML() - + + if self.FILE_OFFLINE_PATTERN in self.html[0]: + self.offline() + self.setWait(self.getWaitTime()) self.wait() -- cgit v1.2.3