summaryrefslogtreecommitdiffstats
path: root/module/plugins/hoster
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-03-10 20:32:01 +0100
committerGravatar Stefano <l.stickell@yahoo.it> 2013-03-10 20:32:01 +0100
commite188c1a32bb80142f8303126470c0abe75d9d7c0 (patch)
tree45c455f2f4195f98c4ffac7d9831123bcbee91e9 /module/plugins/hoster
parentFshareVn: account informations are now retrieved correctly (see bug #29) (diff)
downloadpyload-e188c1a32bb80142f8303126470c0abe75d9d7c0.tar.xz
New hoster: Tusfiles.net
Diffstat (limited to 'module/plugins/hoster')
-rw-r--r--module/plugins/hoster/TusfilesNet.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/module/plugins/hoster/TusfilesNet.py b/module/plugins/hoster/TusfilesNet.py
new file mode 100644
index 000000000..517df8561
--- /dev/null
+++ b/module/plugins/hoster/TusfilesNet.py
@@ -0,0 +1,18 @@
+# -*- coding: utf-8 -*-
+from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+
+class TusfilesNet(XFileSharingPro):
+ __name__ = "TusfilesNet"
+ __type__ = "hoster"
+ __pattern__ = r"http://(www\.)?tusfiles\.net/\w{12}"
+ __version__ = "0.01"
+ __description__ = """Tusfiles.net hoster plugin"""
+ __author_name__ = ("stickell")
+ __author_mail__ = ("l.stickell@yahoo.it")
+
+ FILE_INFO_PATTERN = r'<li>(?P<N>[^<]+)</li>\s+<li><b>Size:</b> <small>(?P<S>[\d.]+) (?P<U>\w+)</small></li>'
+ FILE_OFFLINE_PATTERN = r'The file you were looking for could not be found'
+
+ HOSTER_NAME = "tusfiles.net"
+
+getInfo = create_getInfo(TusfilesNet)