Skip to content

Commit

Permalink
fix code chaos when search qq music
Browse files Browse the repository at this point in the history
  • Loading branch information
listen1 committed May 8, 2016
1 parent 12f70ac commit 6bd309f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Listen 1 (Chrome Extension) (最后更新于5月8日)

* 增加歌词显示
* 精选歌单:添加歌单到当前播放列表,可点击跳转到原始链接
* 修复了搜索qq音乐时的乱码问题
* 修复了循环播放网易歌曲一段时间后暂停的bug
* 修复了可能导致微信公众号无法登录的bug
* 优化性能,删除了不必要的事件消息触发
Expand Down
6 changes: 3 additions & 3 deletions js/qq.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ function qq_get_image_url(qqimgid, img_type) {
function qq_convert_song(song) {
d = {
'id': 'qqtrack_' + song.songmid,
'title': song.songname,
'artist': song.singer[0].name,
'title': htmlDecode(song.songname),
'artist': htmlDecode(song.singer[0].name),
'artist_id': 'qqartist_' + song.singer[0].mid,
'album': song.albumname,
'album': htmlDecode(song.albumname),
'album_id': 'qqalbum_' + song.albummid,
'img_url': qq_get_image_url(song.albummid, 'album'),
'source': 'qq',
Expand Down

0 comments on commit 6bd309f

Please sign in to comment.