diff options
author | Stefano <l.stickell@yahoo.it> | 2013-10-13 22:14:52 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-10-13 22:14:52 +0200 |
commit | 25893d96794067052a3861fe651eaf0bdb616327 (patch) | |
tree | 0ab974432387bb8963f849f99d45da739398f6cf | |
parent | Merge pull request #320 from vuolter/s/dead_crypters (diff) | |
parent | CryptItCom: mark as dead (diff) | |
download | pyload-25893d96794067052a3861fe651eaf0bdb616327.tar.xz |
Merge pull request #321 from vuolter/s/dead_crypters
CryptItCom: marked as dead
-rw-r--r-- | module/plugins/crypter/CryptItCom.py | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/module/plugins/crypter/CryptItCom.py b/module/plugins/crypter/CryptItCom.py index 08ae1cac5..679e891b9 100644 --- a/module/plugins/crypter/CryptItCom.py +++ b/module/plugins/crypter/CryptItCom.py @@ -1,38 +1,13 @@ # -*- coding: utf-8 -*- +from module.plugins.internal.DeadCrypter import DeadCrypter -import re -from random import randint - -from module.plugins.Crypter import Crypter - - -class CryptItCom(Crypter): +class CryptItCom(DeadCrypter): __name__ = "CryptItCom" __type__ = "container" __pattern__ = r"http://[\w\.]*?crypt-it\.com/(s|e|d|c)/[\w]+" - __version__ = "0.1" + __version__ = "0.11" __description__ = """Crypt.It.com Container Plugin""" __author_name__ = ("jeix") __author_mail__ = ("jeix@hasnomail.de") - - def file_exists(self): - html = self.load(self.pyfile.url) - if r'<div class="folder">Was ist Crypt-It</div>' in html: - return False - return True - - def decrypt(self, pyfile): - if not self.file_exists(): - self.offline() - - # @TODO parse name and password - repl_pattern = r"/(s|e|d|c)/" - url = re.sub(repl_pattern, r"/d/", self.pyfile.url) - - pyfile.name = "tmp_cryptit_%s.ccf" % randint(0, 1000) - location = self.download(url) - - self.packages.append(["Crypt-it Package", [location], "Crypt-it Package"]) -
\ No newline at end of file |