summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-06-22 20:47:10 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-06-22 20:47:10 +0200
commit03b3d43698aaf8195e4470faf7ab613c31c48b21 (patch)
treedc44e88d2dd208d16376063a03cbac0b783dc494 /module/plugins
parentDdlstogrageComFolder: fixed regex. (diff)
downloadpyload-03b3d43698aaf8195e4470faf7ab613c31c48b21.tar.xz
DdlstorageCom: updated regex
+ code cleanup
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hoster/DdlstorageCom.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/module/plugins/hoster/DdlstorageCom.py b/module/plugins/hoster/DdlstorageCom.py
index 1ad5fa6d8..5eaebf1d1 100644
--- a/module/plugins/hoster/DdlstorageCom.py
+++ b/module/plugins/hoster/DdlstorageCom.py
@@ -1,20 +1,19 @@
# -*- coding: utf-8 -*-
+
from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+
class DdlstorageCom(XFileSharingPro):
__name__ = "DdlstorageCom"
__type__ = "hoster"
__pattern__ = r"http://(?:\w*\.)*?ddlstorage.com/\w{12}"
- __version__ = "0.06"
+ __version__ = "0.07"
__description__ = """DDLStorage.com hoster plugin"""
- __author_name__ = ("zoidberg")
- __author_mail__ = ("zoidberg@mujmail.cz")
-
- FILE_INFO_PATTERN = r'<h2>\s*Download File\s*<span[^>]*>(?P<N>[^>]+)</span></h2>\s*[^\(]*\((?P<S>[^\)]+)\)</h2>'
+ __author_name__ = ("zoidberg", "stickell")
+ __author_mail__ = ("zoidberg@mujmail.cz", "l.stickell@yahoo.it")
+
+ FILE_INFO_PATTERN = r'<p class="sub_title"[^>]*>(?P<N>.+) \((?P<S>[^)]+)\)</p>'
HOSTER_NAME = "ddlstorage.com"
-
- def setup(self):
- self.resumeDownload = self.multiDL = self.premium
- self.chunkLimit = 1
+
getInfo = create_getInfo(DdlstorageCom) \ No newline at end of file