summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-07-07 15:32:47 +0200
committerGravatar Jeix <devnull@localhost> 2010-07-07 15:32:47 +0200
commited059fa4691cd504798c6d98d99c58e1391b2d6c (patch)
tree33cc9549ccc5f0da3a05c02a6870a8e8199debda /module/plugins/crypter
parentpython 2.5 compatibility fix for ShareOnline.Biz (diff)
downloadpyload-ed059fa4691cd504798c6d98d99c58e1391b2d6c.tar.xz
Crypt-It.com
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/CryptItCom.py37
1 files changed, 37 insertions, 0 deletions
diff --git a/module/plugins/crypter/CryptItCom.py b/module/plugins/crypter/CryptItCom.py
new file mode 100644
index 000000000..fab7625b8
--- /dev/null
+++ b/module/plugins/crypter/CryptItCom.py
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+
+import tempfile
+import re
+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):
+ 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)
+
+ # and it to package
+ self.links = [file_name]
+ \ No newline at end of file