diff options
author | t4skforce <t4skforce@t4skforce-m11x.neumair.net> | 2014-05-05 13:03:54 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2014-05-05 13:03:54 +0200 |
commit | f0c2ea3e9854a78e20270eb4bb9ba7f7097f2f9c (patch) | |
tree | bf6ad5d5a99a17583601648e69a001b571e369b1 /module/plugins/hoster | |
parent | New multihoster: Mega-Debrid (diff) | |
download | pyload-f0c2ea3e9854a78e20270eb4bb9ba7f7097f2f9c.tar.xz |
New hoster: PandaPlanet
Merges #599
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r-- | module/plugins/hoster/PandaPlanet.py | 26 |
1 files changed, 26 insertions, 0 deletions
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:</b>\s*</td>\s*<td[^>]*>(?P<S>[^<]+)</td>\s*</tr>' + FILE_NAME_PATTERN = r'File Name:</b>\s*</td>\s*<td[^>]*>(?P<N>[^<]+)</td>\s*</tr>' + DIRECT_LINK_PATTERN = r'(http://([^/]*?%s|\d+\.\d+\.\d+\.\d+)(:\d+)?(/d/|(?:/files)?/\d+/\w+/)[^"\'<]+\/(?!video\.mp4)[^"\'<]+)' % HOSTER_NAME + + +getInfo = create_getInfo(PandaPlanet) |