diff options
author | Seoester <seoester@googlemail.com> | 2013-05-30 16:18:45 +0200 |
---|---|---|
committer | Seoester <seoester@googlemail.com> | 2013-05-30 16:18:45 +0200 |
commit | 7f618aa3a7886ddc942f7a83a297233b5c39c921 (patch) | |
tree | 88ad8e6c4b490d23e9055088422e4c3ecf4f70f6 /module/plugins/hoster/StreamcloudEu.py | |
parent | LinkdecrypterCom: plugin deactivated (diff) | |
download | pyload-7f618aa3a7886ddc942f7a83a297233b5c39c921.tar.xz |
Recreated StreamcloudEu plugin using XFileSharingPro
Diffstat (limited to 'module/plugins/hoster/StreamcloudEu.py')
-rw-r--r-- | module/plugins/hoster/StreamcloudEu.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/module/plugins/hoster/StreamcloudEu.py b/module/plugins/hoster/StreamcloudEu.py new file mode 100644 index 000000000..eee9b5d67 --- /dev/null +++ b/module/plugins/hoster/StreamcloudEu.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +from module.plugins.hoster.XFileSharingPro import XFileSharingPro, create_getInfo +import re + +class StreamcloudEu(XFileSharingPro): + __name__ = "StreamcloudEu" + __type__ = "hoster" + __pattern__ = r"https?://(www\.)?streamcloud\.eu/" + __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: "(https?://stor\d+\.streamcloud.eu:?\d*/.*/video\.mp4)",' + + def getDownloadLink(self): + found = re.search(self.DIRECT_LINK_PATTERN, self.html, re.S) + if found: + return found.group(1) + + return XFileSharingPro.getDownloadLink(self) |