diff options
Diffstat (limited to 'pyload/plugin/crypter/PastebinCom.py')
-rw-r--r-- | pyload/plugin/crypter/PastebinCom.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/pyload/plugin/crypter/PastebinCom.py b/pyload/plugin/crypter/PastebinCom.py new file mode 100644 index 000000000..95c925733 --- /dev/null +++ b/pyload/plugin/crypter/PastebinCom.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- + +from pyload.plugin.internal.SimpleCrypter import SimpleCrypter + + +class PastebinCom(SimpleCrypter): + __name = "PastebinCom" + __type = "crypter" + __version = "0.03" + + __pattern = r'http://(?:www\.)?pastebin\.com/\w+' + __config = [("use_subfolder", "bool", "Save package to subfolder", True), + ("subfolder_per_package", "bool", "Create a subfolder for each package", True)] + + __description = """Pastebin.com decrypter plugin""" + __license = "GPLv3" + __authors = [("stickell", "l.stickell@yahoo.it")] + + + LINK_PATTERN = r'<div class="de\d+">(https?://[^ <]+)(?:[^<]*)</div>' + NAME_PATTERN = r'<div class="paste_box_line1" title="(?P<N>[^"]+)">' |