summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/SendmywayCom.py
diff options
context:
space:
mode:
authorGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-11-09 23:14:33 +0100
committerGravatar zoidberg10 <zoidberg@mujmail.cz> 2012-11-09 23:14:33 +0100
commit7e1d66ad5fdc3908e20d532d98ac819dd3437fe1 (patch)
treecc5504dbf49bf7345bd8cd3706033b155eff6ab2 /module/plugins/hoster/SendmywayCom.py
parentshare76.com plugin by R2D2 C3PO - closed #710 (diff)
downloadpyload-7e1d66ad5fdc3908e20d532d98ac819dd3437fe1.tar.xz
update XFileSharingPro & add billionuploads,sendmyway,sharebees plugins
Diffstat (limited to 'module/plugins/hoster/SendmywayCom.py')
-rw-r--r--module/plugins/hoster/SendmywayCom.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/module/plugins/hoster/SendmywayCom.py b/module/plugins/hoster/SendmywayCom.py
new file mode 100644
index 000000000..fcbac850a
--- /dev/null
+++ b/module/plugins/hoster/SendmywayCom.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+
+
+class SendmywayCom(XFileSharingPro):
+ __name__ = "SendmywayCom"
+ __type__ = "hoster"
+ __pattern__ = r"http://(?:\w*\.)*?sendmyway.com/\w{12}"
+ __version__ = "0.01"
+ __description__ = """SendMyWay hoster plugin"""
+ __author_name__ = ("zoidberg")
+ __author_mail__ = ("zoidberg@mujmail.cz")
+
+ FILE_NAME_PATTERN = r'<p class="file-name" ><.*?>\s*(?P<N>.+)'
+ FILE_SIZE_PATTERN = r'<small>\((?P<S>\d+) bytes\)</small>'
+ HOSTER_NAME = "sendmyway.com"
+
+getInfo = create_getInfo(SendmywayCom)