Skip to content

Commit

Permalink
酷狗部分歌曲需要付费下载
Browse files Browse the repository at this point in the history
  • Loading branch information
0xHJK committed Jun 11, 2019
1 parent b7e2065 commit 34d1550
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions music_dl/addons/kugou.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ def download(self):
res_data = KugouApi.request(
"http://m.kugou.com/app/i/getSongInfo.php", method="GET", data=params
)
if not res_data.get("url", ""):
self.logger.error(self.name + " @KUGOU is not available.")
return
self.song_url = res_data.get("url", "")
self.rate = res_data.get("bitRate", 128)
self.ext = res_data.get("extName", "mp3")
Expand Down

0 comments on commit 34d1550

Please sign in to comment.