summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/hoster/UptoboxCom.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/hoster/UptoboxCom.py')
-rw-r--r--pyload/plugins/hoster/UptoboxCom.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/pyload/plugins/hoster/UptoboxCom.py b/pyload/plugins/hoster/UptoboxCom.py
new file mode 100644
index 000000000..d07aeda97
--- /dev/null
+++ b/pyload/plugins/hoster/UptoboxCom.py
@@ -0,0 +1,35 @@
+# -*- coding: utf-8 -*-
+
+import re
+
+from pyload.plugins.internal.XFileSharingPro import XFileSharingPro, create_getInfo
+
+
+class UptoboxCom(XFileSharingPro):
+ __name__ = "UptoboxCom"
+ __type__ = "hoster"
+ __version__ = "0.10"
+
+ __pattern__ = r'https?://(?:www\.)?uptobox\.com/\w{12}'
+
+ __description__ = """Uptobox.com hoster plugin"""
+ __author_name__ = "Walter Purcaro"
+ __author_mail__ = "vuolter@gmail.com"
+
+
+ HOSTER_NAME = "uptobox.com"
+
+ FILE_INFO_PATTERN = r'"para_title">(?P<N>.+) \((?P<S>[\d.]+) (?P<U>\w+)\)'
+ OFFLINE_PATTERN = r'>(File not found|Access Denied|404 Not Found)'
+
+ WAIT_PATTERN = r'>(\d+)</span> seconds<'
+ LINK_PATTERN = r'"(https?://\w+\.uptobox\.com/d/.*?)"'
+
+
+ def setup(self):
+ self.multiDL = True
+ self.chunkLimit = 1
+ self.resumeDownload = True
+
+
+getInfo = create_getInfo(UptoboxCom)