diff options
author | Jeix <devnull@localhost> | 2010-07-09 11:50:46 +0200 |
---|---|---|
committer | Jeix <devnull@localhost> | 2010-07-09 11:50:46 +0200 |
commit | e78ccdd1d4741d9806ec20f1266ea79916d638fd (patch) | |
tree | c43a45e366ad9cf73438eb9e54b5d3aece1032ec /module/plugins/crypter | |
parent | Crypt-It.com (diff) | |
download | pyload-e78ccdd1d4741d9806ec20f1266ea79916d638fd.tar.xz |
Crypt
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/CryptItCom.py | 9 |
1 files changed, 8 insertions, 1 deletions
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'<div class="folder">Was ist Crypt-It</div>' 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] |