summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-02 00:21:59 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-02-02 00:21:59 +0100
commitd544e9f302896211ba36cb85570cff868ea106e0 (patch)
tree018f2d4175c85f0012481fc23ea7fe07a40f6e58 /module
parent[RapidgatorNet] Account cosmetics (diff)
parentUpdate XdadevelopersCom.py (diff)
downloadpyload-d544e9f302896211ba36cb85570cff868ea106e0.tar.xz
Merge pull request #1123 from zapp-brannigan/patch-1
[New Hoster] xdadevelopers.com
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hoster/XdadevelopersCom.py34
1 files changed, 34 insertions, 0 deletions
diff --git a/module/plugins/hoster/XdadevelopersCom.py b/module/plugins/hoster/XdadevelopersCom.py
new file mode 100644
index 000000000..2ccff754f
--- /dev/null
+++ b/module/plugins/hoster/XdadevelopersCom.py
@@ -0,0 +1,34 @@
+# -*- coding: utf-8 -*-
+# http://forum.xda-developers.com/devdb/project/dl/?id=10885
+
+import re
+
+from module.plugins.internal.SimpleHoster import SimpleHoster, create_getInfo
+
+
+class XdadevelopersCom(SimpleHoster):
+ __name__ = "XdadevelopersCom"
+ __type__ = "hoster"
+ __version__ = "0.01"
+
+ __pattern__ = r'https?://(?:www\.)?forum.xda-developers.com/devdb/project/dl/\?id=\d+'
+
+ __description__ = """forum.xdadevelopers.com hoster plugin (DevDB)"""
+ __license__ = "GPLv3"
+ __authors__ = [("zapp-brannigan", "fuerst.reinje@web.de")]
+
+
+ NAME_PATTERN = r'<label>Filename:</label>\n\t\t\t\t\t<div>\n\t\t\t\t\t(?P<N>.*?)\n\t\t\t\t\t</div>'
+ SIZE_PATTERN = r'<label>Size:</label>\n\t\t\t\t\t<div>\n\t\t\t\t\t(?P<S>[\d.]+)(?P<U>[kKmMgGbB]+)\n\t\t\t\t\t</div>\n'
+
+ OFFLINE_PATTERN = r'</i> Device Filter</h3>'
+
+
+ def setup(self):
+ self.multiDL = True
+ self.chunkLimit = 1
+
+ def handleFree(self, pyfile):
+ self.download(pyfile.url+"&task=get",cookies=True,disposition=True)
+
+getInfo = create_getInfo(XdadevelopersCom)