Skip to content

Commit

Permalink
fix kuwo search error interrupts play bug
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed Feb 3, 2021
1 parent 5bdb9db commit 5b37d1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/provider/kuwo.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,10 @@ function build_kuwo() {
kw_cookie_get(target_url, (response) => {
let result = [];
let total = 0;
if (searchType === '0') {
if (searchType === '0' && response.data.data !== undefined) {
result = response.data.data.list.map((item) => kw_convert_song2(item));
total = response.data.data.total;
} else if (searchType === '1') {
} else if (searchType === '1' && response.data.data !== undefined) {
result = response.data.data.list.map((item) => ({
id: `kwplaylist_${item.id}`,
title: html_decode(item.name),
Expand Down

0 comments on commit 5b37d1d

Please sign in to comment.