summaryrefslogtreecommitdiffstats
path: root/module/plugins/crypter/ChipDe.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 12:54:08 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-03-12 12:54:08 +0100
commit4422ff62686b28c72595409113f4085ef3f3d731 (patch)
tree73a1f3bbd14b6f289e93714481a3c5155c7460ac /module/plugins/crypter/ChipDe.py
parentEgoFilesCom: regex updated (diff)
parentMovie2kTo: fixed regex to be more reliable (diff)
downloadpyload-4422ff62686b28c72595409113f4085ef3f3d731.tar.xz
Merge pull request #41 from 4Christopher/stable
Wrote crypter plugin ChipDe and fixed Movie2kTo
Diffstat (limited to 'module/plugins/crypter/ChipDe.py')
-rw-r--r--module/plugins/crypter/ChipDe.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/module/plugins/crypter/ChipDe.py b/module/plugins/crypter/ChipDe.py
new file mode 100644
index 000000000..fcb84a300
--- /dev/null
+++ b/module/plugins/crypter/ChipDe.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import re
+from module.plugins.Crypter import Crypter
+
+class ChipDe(Crypter):
+ __name__ = "ChipDe"
+ __type__ = "container"
+ __pattern__ = r"http://(?:www\.)?chip.de/video/.*\.html"
+ __version__ = "0.1"
+ __description__ = """Chip.de Container Plugin"""
+ __author_name__ = ('4Christopher')
+ __author_mail__ = ('4Christopher@gmx.de')
+
+ def decrypt(self, pyfile):
+ self.html = self.load(pyfile.url)
+ try:
+ url = re.search(r'"(http://video.chip.de/\d+?/.*)"', self.html).group(1)
+ self.logDebug('The file URL is %s' % url)
+ except:
+ self.fail('Failed to find the URL')
+
+ self.packages.append((self.pyfile.package().name, [ url ], self.pyfile.package().folder))