From f0c2ea3e9854a78e20270eb4bb9ba7f7097f2f9c Mon Sep 17 00:00:00 2001 From: t4skforce Date: Mon, 5 May 2014 13:03:54 +0200 Subject: New hoster: PandaPlanet Merges #599 --- module/plugins/hoster/PandaPlanet.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 module/plugins/hoster/PandaPlanet.py (limited to 'module/plugins/hoster') diff --git a/module/plugins/hoster/PandaPlanet.py b/module/plugins/hoster/PandaPlanet.py new file mode 100644 index 000000000..b6aa77b03 --- /dev/null +++ b/module/plugins/hoster/PandaPlanet.py @@ -0,0 +1,26 @@ +# -*- coding: utf-8 -*- + +# Test links: +# test.bin - 214 B - http://pandapla.net/pew1cz3ot586 +# BigBuckBunny_320x180.mp4 - 61.7 Mb - http://pandapla.net/tz0rgjfyyoh7 + +from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo + + +class PandaPlanet(XFileSharingPro): + __name__ = "PandaPlanet" + __type__ = "hoster" + __pattern__ = r'https?://(?:www\.)?pandapla\.net/\w{12}' + __version__ = "0.01" + __description__ = """Pandapla.net hoster plugin""" + __author_name__ = "t4skforce" + __author_mail__ = "t4skforce1337[AT]gmail[DOT]com" + + HOSTER_NAME = "pandapla.net" + + FILE_SIZE_PATTERN = r'File Size:\s*\s*]*>(?P[^<]+)\s*' + FILE_NAME_PATTERN = r'File Name:\s*\s*]*>(?P[^<]+)\s*' + DIRECT_LINK_PATTERN = r'(http://([^/]*?%s|\d+\.\d+\.\d+\.\d+)(:\d+)?(/d/|(?:/files)?/\d+/\w+/)[^"\'<]+\/(?!video\.mp4)[^"\'<]+)' % HOSTER_NAME + + +getInfo = create_getInfo(PandaPlanet) -- cgit v1.2.3