summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-06-04 13:23:59 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-06-04 13:23:59 +0200
commit3d4a031055ec11d523be60d9f3476ac6fcd33cae (patch)
treebb6f4055ce61e09063e6e9ca260264821f813a0c
parentRevert to a simple version of the plugin (diff)
parentsuper() function used (diff)
downloadpyload-3d4a031055ec11d523be60d9f3476ac6fcd33cae.tar.xz
Merge pull request #148 from seoester/stable
Implemented StreamcloudEu plugin based on XFileSharingPro
-rw-r--r--module/plugins/hoster/StreamcloudEu.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/module/plugins/hoster/StreamcloudEu.py b/module/plugins/hoster/StreamcloudEu.py
new file mode 100644
index 000000000..9e7c61ccc
--- /dev/null
+++ b/module/plugins/hoster/StreamcloudEu.py
@@ -0,0 +1,28 @@
+# -*- coding: utf-8 -*-
+from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo
+import re
+
+class StreamcloudEu(XFileSharingPro):
+ __name__ = "StreamcloudEu"
+ __type__ = "hoster"
+ __pattern__ = r"http://(www\.)?streamcloud\.eu/\S+"
+ __version__ = "0.01"
+ __description__ = """Streamcloud.eu hoster plugin"""
+ __author_name__ = ("seoester")
+ __author_mail__ = ("seoester@googlemail.com")
+
+ HOSTER_NAME = "streamcloud.eu"
+ DIRECT_LINK_PATTERN = r'file: "(http://(stor|cdn)\d+\.streamcloud.eu:?\d*/.*/video\.mp4)",'
+
+ def setup(self):
+ super(XFileSharingPro, self).setup()
+ self.multiDL = True
+
+ def getDownloadLink(self):
+ found = re.search(self.DIRECT_LINK_PATTERN, self.html, re.S)
+ if found:
+ return found.group(1)
+
+ return super(XFileSharingPro, self).getDownloadLink()
+
+getInfo = create_getInfo(StreamcloudEu)