diff options
author | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-20 01:44:02 +0100 |
---|---|---|
committer | GammaC0de <GammaC0de@users.noreply.github.com> | 2015-12-20 01:44:02 +0100 |
commit | 08a8a2f440879d5e49375081f1d0207b5a66392c (patch) | |
tree | 7f863c9fda4e59cac2fb6b41076455974350fb58 /module/plugins/crypter | |
parent | [ClickNLoad] Small bug fix (diff) | |
download | pyload-08a8a2f440879d5e49375081f1d0207b5a66392c.tar.xz |
[HflixIn] new crypter
Diffstat (limited to 'module/plugins/crypter')
-rw-r--r-- | module/plugins/crypter/HflixIn.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/module/plugins/crypter/HflixIn.py b/module/plugins/crypter/HflixIn.py new file mode 100644 index 000000000..f0bcd7d3a --- /dev/null +++ b/module/plugins/crypter/HflixIn.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- + +import re + +from module.plugins.internal.Crypter import Crypter + +class HflixIn(Crypter): + __name__ = "HflixIn" + __type__ = "crypter" + __version__ = "0.1" + __status__ = "testing" + + __pattern__ = r"http://hflix.in/\w{5}" + + __description__ = """Hflix.in Decrypter Plugin""" + __license__ = "GPLv3" + __authors__ = [("GammaC0de", "nitzo2001[AT]yahoo[DOT]com")] + + + def decrypt(self, pyfile): + headers = self.load(pyfile.url, just_header=True) + if 'refresh' in headers and headers['refresh']: + m = re.search("\d+;url=(.+)", headers['refresh']) + if m and "http://hflix.in/admin" not in m.group(1): + self.packages.append((pyfile.package().name, [m.group(1)], pyfile.package().name)) + + else: + self.offline() |