Skip to content

Commit

Permalink
feat: netease2 lossless and proxy option
Browse files Browse the repository at this point in the history
  • Loading branch information
lekoOwO authored Dec 3, 2022
1 parent 9368d43 commit 4715a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dataModule/netease2.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function randomUserAgent(){
const userAgent = randomUserAgent();

const options = (url, qs = {}, resolveWithFullResponse = false, cookie = true) => ({
url: `${url}${url.includes("?") ? "&" : "?"}realIP=${chinaIP}`,
url: `${url}${url.includes("?") ? "&" : "?"}realIP=${chinaIP}${config.proxy ? "&proxy="+encodeURIComponent(config.proxy) : ""}`,
params: qs,
jar: cookie ? jar : null,
resolveWithFullResponse
Expand Down Expand Up @@ -234,7 +234,7 @@ async function getSong(req, songRes, id) {
low: 128000,
medium: 192000,
high: 320000,
original: 320000
original: 999000
}[songRes];
let isArray = Array.isArray(id);
id = isArray ? id : [id];
Expand Down

0 comments on commit 4715a82

Please sign in to comment.