summaryrefslogtreecommitdiffstats
path: root/pyload/plugin/account/WebshareCz.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugin/account/WebshareCz.py')
-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/",