From e88c477d1ae3913096b92f41274ef578693bc052 Mon Sep 17 00:00:00 2001 From: Stefano Date: Mon, 21 Apr 2014 17:26:28 +0200 Subject: Moving new plugins from module to pyload --- pyload/plugins/crypter/TnyCz.py | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 pyload/plugins/crypter/TnyCz.py (limited to 'pyload/plugins/crypter/TnyCz.py') diff --git a/pyload/plugins/crypter/TnyCz.py b/pyload/plugins/crypter/TnyCz.py new file mode 100644 index 000000000..6c56f7639 --- /dev/null +++ b/pyload/plugins/crypter/TnyCz.py @@ -0,0 +1,38 @@ +# -*- coding: utf-8 -*- + +""" + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, + or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, see . + + @author: Walter Purcaro +""" + +from module.plugins.internal.SimpleCrypter import SimpleCrypter + +import re + + +class TnyCz(SimpleCrypter): + __name__ = "TnyCz" + __type__ = "crypter" + __pattern__ = r'http://(?:www\.)?tny\.cz/\w+' + __version__ = "0.01" + __description__ = """Tny.cz decrypter plugin""" + __author_name__ = "Walter Purcaro" + __author_mail__ = "vuolter@gmail.com" + + TITLE_PATTERN = r'(?P<title>.+) - .+' + + def getLinks(self): + m = re.search(r'', self.html) + return re.findall(".+", self.load(m.group(1), decode=True)) if m else None -- cgit v1.2.3