diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-12 12:54:08 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-03-12 12:54:08 +0100 |
commit | 4422ff62686b28c72595409113f4085ef3f3d731 (patch) | |
tree | 73a1f3bbd14b6f289e93714481a3c5155c7460ac /module/plugins/crypter/ChipDe.py | |
parent | EgoFilesCom: regex updated (diff) | |
parent | Movie2kTo: fixed regex to be more reliable (diff) | |
download | pyload-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.py | 24 |
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)) |