summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster/SendmywayCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hoster/SendmywayCom.py')
-rw-r--r--module/plugins/hoster/SendmywayCom.py24
1 files changed, 12 insertions, 12 deletions
diff --git a/module/plugins/hoster/SendmywayCom.py b/module/plugins/hoster/SendmywayCom.py
index 6de87e2b3..637098b88 100644
--- a/module/plugins/hoster/SendmywayCom.py
+++ b/module/plugins/hoster/SendmywayCom.py
@@ -1,21 +1,21 @@
# -*- coding: utf-8 -*-
-from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+from module.plugins.internal.XFSHoster import XFSHoster, create_getInfo
-class SendmywayCom(XFileSharingPro):
- __name__ = "SendmywayCom"
- __type__ = "hoster"
- __pattern__ = r'http://(?:www\.)?sendmyway.com/\w{12}'
- __version__ = "0.01"
- __description__ = """SendMyWay hoster plugin"""
- __author_name__ = "zoidberg"
- __author_mail__ = "zoidberg@mujmail.cz"
+class SendmywayCom(XFSHoster):
+ __name__ = "SendmywayCom"
+ __type__ = "hoster"
+ __version__ = "0.04"
- HOSTER_NAME = "sendmyway.com"
+ __pattern__ = r'http://(?:www\.)?sendmyway\.com/\w{12}'
- FILE_NAME_PATTERN = r'<p class="file-name" ><.*?>\s*(?P<N>.+)'
- FILE_SIZE_PATTERN = r'<small>\((?P<S>\d+) bytes\)</small>'
+ __description__ = """SendMyWay.com hoster plugin"""
+ __license__ = "GPLv3"
+ __authors__ = [("zoidberg", "zoidberg@mujmail.cz")]
+
+
+ HOSTER_DOMAIN = "sendmyway.com"
getInfo = create_getInfo(SendmywayCom)