summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/CryptItCom.py
diff options
context:
space:
mode:
authorGravatar mkaay <mkaay@mkaay.de> 2010-08-25 16:48:55 +0200
committerGravatar mkaay <mkaay@mkaay.de> 2010-08-25 16:48:55 +0200
commit3c9f55270a83b0e88ec0dc516f9d9921e4d7b6ea (patch)
treec5b2b1bfeb7eb8df2b97be118f6cbcec4e29cb3b /module/plugins/crypter/CryptItCom.py
parentul.to fetching, so.biz expire (diff)
downloadpyload-3c9f55270a83b0e88ec0dc516f9d9921e4d7b6ea.tar.xz
merged gui
Diffstat (limited to 'module/plugins/crypter/CryptItCom.py')
-rw-r--r--module/plugins/crypter/CryptItCom.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/module/plugins/crypter/CryptItCom.py b/module/plugins/crypter/CryptItCom.py
deleted file mode 100644
index 4dff06b21..000000000
--- a/module/plugins/crypter/CryptItCom.py
+++ /dev/null
@@ -1,44 +0,0 @@
-# -*- coding: utf-8 -*-
-
-import tempfile
-import re
-from os import remove
-import os.path
-
-from time import time
-from module.plugins.Crypter import Crypter
-
-
-class CryptItCom(Crypter):
- __name__ = "CryptItCom"
- __type__ = "container"
- __pattern__ = r"http://[\w\.]*?crypt-it\.com/(s|e|d|c)/[\w]+"
- __version__ = "0.1"
- __description__ = """Crypt.It.com Container Plugin"""
- __author_name__ = ("jeix")
- __author_mail__ = ("jeix@hasnomail.de")
-
- def __init__(self, parent):
- Crypter.__init__(self, parent)
- self.parent = parent
-
- def file_exists(self):
- 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)/"
- url = re.sub(repl_pattern, r"/d/", url)
-
- # 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]
- \ No newline at end of file