From e78ccdd1d4741d9806ec20f1266ea79916d638fd Mon Sep 17 00:00:00 2001 From: Jeix Date: Fri, 9 Jul 2010 11:50:46 +0200 Subject: Crypt --- module/plugins/crypter/CryptItCom.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'module/plugins') diff --git a/module/plugins/crypter/CryptItCom.py b/module/plugins/crypter/CryptItCom.py index fab7625b8..cc9af8dd6 100644 --- a/module/plugins/crypter/CryptItCom.py +++ b/module/plugins/crypter/CryptItCom.py @@ -2,6 +2,7 @@ import tempfile import re +from os import remove import os.path from time import time @@ -22,7 +23,10 @@ class CryptItCom(Crypter): self.parent = parent def file_exists(self): - return True + html = self.load(self.parent.url) + if r'
Was ist Crypt-It
' in html): + return False + return True def proceed(self, url, location): repl_pattern = r"/(s|e|d|c)/" @@ -31,6 +35,9 @@ class CryptItCom(Crypter): # download ccf file_name = os.path.join(tempfile.gettempdir(), "pyload_tmp_%d.ccf"%time()) file_name = self.req.download(url, file_name) + if file_name == "redir.ccf": + remove(file_name) + raise Exception, _("File not found") # and it to package self.links = [file_name] -- cgit v1.2.3