diff options
| author | 2016-05-19 20:10:05 +0200 | |
|---|---|---|
| committer | 2016-05-19 20:10:05 +0200 | |
| commit | 1b18a6ab2efa64a935b422fe6005ebeef4235f38 (patch) | |
| tree | 29b8494eb805390a29f9fb96371f055159d31fea | |
| parent | [DatafileCom] Update (diff) | |
| parent | Python 2.5 fix (diff) | |
| download | pyload-1b18a6ab2efa64a935b422fe6005ebeef4235f38.tar.xz | |
Merge pull request #2468 from OndrejIT/stable
Improved StreamCZ get_api_password
| -rw-r--r-- | module/plugins/hoster/StreamCz.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/module/plugins/hoster/StreamCz.py b/module/plugins/hoster/StreamCz.py index fc00c0776..ab940301f 100644 --- a/module/plugins/hoster/StreamCz.py +++ b/module/plugins/hoster/StreamCz.py @@ -12,11 +12,10 @@ from module.plugins.internal.SimpleHoster import SimpleHoster def get_api_password(episode): api_key = "fb5f58a820353bd7095de526253c14fd" - timestamp = int(round(time.time() * 1000 / 1e3 / 24 / 3600)) + timestamp = int(round(time.time() / 24 / 3600)) api_pass = api_key + "/episode/" + episode + str(timestamp) - m = hashlib.md5() - m.update(api_pass) + m = hashlib.md5(api_pass) return m.hexdigest() @@ -53,7 +52,7 @@ def get_link_quality(videos, quality): class StreamCz(SimpleHoster): __name__ = "StreamCz" __type__ = "hoster" - __version__ = "0.37" + __version__ = "0.38" __status__ = "testing" __pattern__ = r'https?://(?:www\.)?stream\.cz/[^/]+/(?P<EP>\d+).+' |
