summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/CryptItCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/crypter/CryptItCom.py')
-rw-r--r--module/plugins/crypter/CryptItCom.py9
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]