Skip to content

Commit

Permalink
fix: kuwo search api signature changed
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed Jul 14, 2023
1 parent 98843fe commit f825fb0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions js/provider/kuwo.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
/* global async getParameterByName isElectron */
class kuwo {
static forgeMD5(message) {
return forge.md5
const md = forge.md.sha1.create();
md.update(message);
const sig1 = md.digest().toHex();
const sig2 = forge.md5
.create()
.update(forge.util.encodeUtf8(message))
.update(forge.util.encodeUtf8(sig1))
.digest()
.toHex();
return sig2;
}

// Convert html code
Expand Down

0 comments on commit f825fb0

Please sign in to comment.