Skip to content

Commit

Permalink
fix: bilibli search error
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed Aug 30, 2022
1 parent f4a490d commit 88c5e68
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions js/provider/bilibili.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,17 @@ class bilibili {
});
}
);
} else {
axios.get(target_url).then((response) => {
const result = response.data.data.result.map((song) =>
this.bi_convert_song2(song)
);
const total = response.data.data.numResults;
return fn({
result,
total,
});
});
}
}
);
Expand Down

0 comments on commit 88c5e68

Please sign in to comment.