diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-07-19 14:48:40 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-07-20 03:27:52 +0200 |
commit | b3b82f960e553dbabbaf4f1d276b560e2cfffab0 (patch) | |
tree | e904c7ffadc7609c0851d9456f4ec5d2d4be4ce3 | |
parent | [FreevideoCz] Mark as dead (diff) | |
download | pyload-b3b82f960e553dbabbaf4f1d276b560e2cfffab0.tar.xz |
[StreamCz] Parse https
-rw-r--r-- | module/plugins/hoster/StreamCz.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/module/plugins/hoster/StreamCz.py b/module/plugins/hoster/StreamCz.py index 9e5b6233f..7614c0cc3 100644 --- a/module/plugins/hoster/StreamCz.py +++ b/module/plugins/hoster/StreamCz.py @@ -16,6 +16,7 @@ """ import re + from module.plugins.Hoster import Hoster from module.network.RequestFactory import getURL @@ -36,17 +37,21 @@ def getInfo(urls): class StreamCz(Hoster): __name__ = "StreamCz" + __version__ = "0.2" __type__ = "hoster" - __pattern__ = r'http://(?:www\.)?stream.cz/[^/]+/\d+.*' - __version__ = "0.1" + + __pattern__ = r'https?://(?:www\.)?stream\.cz/[^/]+/\d+.*' + __description__ = """Stream.cz hoster plugin""" __author_name__ = "zoidberg" __author_mail__ = "zoidberg@mujmail.cz" - OFFLINE_PATTERN = r'<h1 class="commonTitle">Str.nku nebylo mo.n. nal.zt \(404\)</h1>' FILE_NAME_PATTERN = r'<link rel="video_src" href="http://www.stream.cz/\w+/(\d+)-([^"]+)" />' + OFFLINE_PATTERN = r'<h1 class="commonTitle">Str.nku nebylo mo.n. nal.zt \(404\)</h1>' + CDN_PATTERN = r'<param name="flashvars" value="[^"]*&id=(?P<ID>\d+)(?:&cdnLQ=(?P<cdnLQ>\d*))?(?:&cdnHQ=(?P<cdnHQ>\d*))?(?:&cdnHD=(?P<cdnHD>\d*))?&' + def setup(self): self.multiDL = True self.resumeDownload = True |