summaryrefslogtreecommitdiffstats
path: root/pyload/plugin
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 16:29:22 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 16:29:22 +0200
commit18a808617f60c30e7ed817d79050f5564d289eb0 (patch)
tree04d1f0d6657dd951d2665da2330e54ebe0bd6665 /pyload/plugin
parentMissing optional lib (diff)
downloadpyload-18a808617f60c30e7ed817d79050f5564d289eb0.tar.xz
Other import fixes (3)
Diffstat (limited to 'pyload/plugin')
-rw-r--r--pyload/plugin/account/WebshareCz.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/plugin/account/WebshareCz.py b/pyload/plugin/account/WebshareCz.py
index c547534ba..35640dba0 100644
--- a/pyload/plugin/account/WebshareCz.py
+++ b/pyload/plugin/account/WebshareCz.py
@@ -1,11 +1,10 @@
# -*- coding: utf-8 -*-
import hashlib
+import passlib
import re
import time
-from passlib.hash import md5_crypt
-
from pyload.plugin.Account import Account
@@ -51,7 +50,7 @@ class WebshareCz(Account):
self.wrongPassword()
salt = re.search('<salt>(.+)</salt>', salt).group(1)
- password = hashlib.sha1(md5_crypt.encrypt(data['password'], salt=salt)).hexdigest()
+ password = hashlib.sha1(passlib.hash.md5_crypt.encrypt(data['password'], salt=salt)).hexdigest()
digest = hashlib.md5(user + ":Webshare:" + password).hexdigest()
login = req.load("https://webshare.cz/api/login/",