summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter
diff options
context:
space:
mode:
authorGravatar Frederik Möllers <frederikmoellers@posteo.de> 2015-06-09 01:04:18 +0200
committerGravatar Frederik Möllers <frederikmoellers@posteo.de> 2015-06-09 01:04:18 +0200
commitc1f90e1ce22de0af52559b29950692dc3cd64f04 (patch)
tree788b18eece5d8455a38a792f7e3464eec118fbcc /module/plugins/crypter
parentFix https://github.com/pyload/pyload/issues/1468 (diff)
downloadpyload-c1f90e1ce22de0af52559b29950692dc3cd64f04.tar.xz
New Crypter plugin: sh.st
sh.st is a URL shortener service with ads (much like adf.ly and others). The crypter uses deadlockers.com to bypass the ads/waiting times. It keeps the package name and folder and just inserts the target URL.
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r--module/plugins/crypter/ShSt.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/module/plugins/crypter/ShSt.py b/module/plugins/crypter/ShSt.py
new file mode 100644
index 000000000..c50a437db
--- /dev/null
+++ b/module/plugins/crypter/ShSt.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+
+from module.plugins.internal.Crypter import Crypter
+
+import re
+
+
+class ShSt(Crypter):
+ __name__ = "ShSt"
+ __type__ = "crypter"
+ __version__ = "0.01"
+
+ __pattern__ = r'http://sh\.st/\w+'
+
+ __description__ = """Sh.St decrypter plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("Frederik Möllers", "fred-public@posteo.de")]
+
+
+ NAME_PATTERN = r'<title>(?P<N>.+?) - .+</title>'
+
+
+ def decrypt(self, pyfile):
+ package = pyfile.package()
+ package_name = package.name
+ package_folder = package.folder
+ html = self.load("http://deadlockers.com/submit.php", post = { "deadlock" : self.pyfile.url }, decode = True)
+ self.packages.append((package_name, [html], package_folder))