Skip to content

Commit

Permalink
Bump v0.7.5 (#15)
Browse files Browse the repository at this point in the history
* fix qq music can't play bug
  • Loading branch information
listen1 authored Nov 27, 2019
1 parent d975db3 commit bef0fef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Listen1 Mobile V0.7.4
# Listen1 Mobile V0.7.5

[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](LICENSE)

Expand Down Expand Up @@ -66,6 +66,10 @@ Apk 打包

## 更新日志

`2019-11-27`

- 修复 qq 音乐因 user-agent 无法访问的 bug

`2019-08-09`

- 修复网易云音乐无法访问的 bug
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "listen1-mobile",
"version": "0.7.4",
"version": "0.7.5",
"private": true,
"scripts": {
"start": "react-native start",
Expand Down Expand Up @@ -60,4 +60,4 @@
"jest": {
"preset": "react-native"
}
}
}
7 changes: 4 additions & 3 deletions src/api/provider/qq.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ function qqConvertSong(song) {
album_id: `qqalbum_${song.albummid}`,
img_url: qqGetImageUrl(song.albummid, 'album'),
source: 'qq',
source_url: `http://y.qq.com/#type=song&mid=${
song.songmid
}&tpl=yqq_song_detail`,
source_url: `http://y.qq.com/#type=song&mid=${song.songmid}&tpl=yqq_song_detail`,
url: `qqtrack_${song.songmid}`,
disabled: !qqIsPlayable(song),
};
Expand Down Expand Up @@ -167,8 +165,11 @@ function bootstrapTrack(trackId) {
'format%22%3A%22json%22%2C%22ct%22%3A20%2C%22cv%22%3A0%7D%7D';

return fetch(targetUrl, {
method: 'GET',
headers: {
Referer: 'https://y.qq.com/',
'User-Agent':
'Mozilla/5.0 (Linux; U; Android 8.1.0; zh-cn; BLA-AL00 Build/HUAWEIBLA-AL00) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.132 MQQBrowser/8.9 Mobile Safari/537.36',
},
})
.then(response => response.json())
Expand Down

0 comments on commit bef0fef

Please sign in to comment.