Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Mar 6, 2024
1 parent 25d23ca commit a72f0ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ def ne_search(keyword: str, search_type: SearchType) -> dict:
}
try:
data = _eapi_request("/eapi/cloudsearch/pc", params)
if 'result' not in data:
return []
match search_type:
case SearchType.SONG:
results = nesonglist2result(data['result']['songs'])
Expand Down

0 comments on commit a72f0ab

Please sign in to comment.