Skip to content

Commit c81c33a

Browse files
committed
发布0.3.5版本
1 parent 1786376 commit c81c33a

18 files changed

Lines changed: 124 additions & 110 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
66
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
77
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
88

9+
## [0.3.5](https://github.com/lyswhut/lx-music-desktop/compare/v0.3.4...v0.3.5) - 2019-08-30
10+
11+
### 新增
12+
13+
- 新增**测试接口**,该接口同样速度较慢,但软件的大部分功能可用,**请自行切换到该接口**,找接口辛苦,且用且珍惜!
14+
15+
### 优化
16+
17+
- 取消需要刷新URL时windows任务栏进度显示错误状态(现显示为暂停状态)
18+
19+
### 修复
20+
21+
- 修复使用临时接口时在试听列表双击灰色歌曲仍然会进行播放的Bug
22+
- 修复歌词加载Bug
23+
924
## [0.3.4](https://github.com/lyswhut/lx-music-desktop/compare/v0.3.3...v0.3.4) - 2019-08-29
1025

1126
### 优化

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ npm run pack
8383

8484
### 致谢
8585

86-
感谢 [@messoer](https://github.com/messoer) 提供的部分音乐API
86+
感谢 [@messoer](https://github.com/messoer) 曾经提供的部分音乐API
8787

8888
### 免责声明
8989

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lx-music-desktop",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"description": "一个免费的音乐下载助手",
55
"main": "./dist/electron/main.js",
66
"productName": "lx-music-desktop",

publish/changeLog.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1+
### 新增
2+
3+
- 新增**测试接口**,该接口同样速度较慢,但软件的大部分功能可用,**请自行切换到该接口**,找接口辛苦,且用且珍惜!
4+
15
### 优化
26

3-
- 减少接口不稳定带来的影响,适当增加请求等待时间
7+
- 取消需要刷新URL时windows任务栏进度显示错误状态(现显示为暂停状态)
48

59
### 修复
610

7-
- 修复播放过程中URL过期不会刷新URL的问题
11+
- 修复使用临时接口时在试听列表双击灰色歌曲仍然会进行播放的Bug
12+
- 修复歌词加载Bug

publish/version.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
2-
"version": "0.3.4",
3-
"desc": "<h3>优化</h3>\n<ul>\n<li>减少接口不稳定带来的影响,适当增加请求等待时间</li>\n</ul>\n<h3>修复</h3>\n<ul>\n<li>修复播放过程中URL过期不会刷新URL的问题</li>\n</ul>\n",
2+
"version": "0.3.5",
3+
"desc": "<h3>新增</h3>\n<ul>\n<li>新增<strong>测试接口</strong>,该接口同样速度较慢,但软件的大部分功能可用,<strong>请自行切换到该接口</strong>,找接口辛苦,且用且珍惜!</li>\n</ul>\n<h3>优化</h3>\n<ul>\n<li>取消需要刷新URL时windows任务栏进度显示错误状态(现显示为暂停状态)</li>\n</ul>\n<h3>修复</h3>\n<ul>\n<li>修复使用临时接口时在试听列表双击灰色歌曲仍然会进行播放的Bug</li>\n<li>修复歌词加载Bug</li>\n</ul>\n",
44
"history": [
5+
{
6+
"version": "0.3.4",
7+
"desc": "<h3>优化</h3>\n<ul>\n<li>减少接口不稳定带来的影响,适当增加请求等待时间</li>\n</ul>\n<h3>修复</h3>\n<ul>\n<li>修复播放过程中URL过期不会刷新URL的问题</li>\n</ul>\n"
8+
},
59
{
610
"version": "0.3.3",
711
"desc": "<h3>修复</h3>\n<ul>\n<li><strong>messoer</strong>的接口已经关闭,暂时切换到临时接口使用,部分功能受限。。。</li>\n<li>修复设置界面更新出错时仍然显示更新下载中的问题</li>\n<li>修复手动定位播放进度条时存在偏差的问题</li>\n<li>屏蔽播放器中没有歌曲时对进度条的点击</li>\n</ul>\n"

src/renderer/components/core/Player.vue

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ export default {
195195
if (!this.musicInfo.songmid) return
196196
console.log('出错')
197197
this.stopPlay()
198-
this.sendProgressEvent(this.progress, 'error')
199198
if (this.audio.error.code !== 1 && this.retryNum < 3) { // 若音频URL无效则尝试刷新3次URL
200199
// console.log(this.retryNum)
201200
this.audioErrorTime = this.audio.currentTime // 记录出错的播放时间
@@ -205,21 +204,7 @@ export default {
205204
return
206205
}
207206
208-
// let urls = this.player_info.targetSong.urls
209-
// if (urls && urls.some((url, index) => {
210-
// if (this.musicInfo.musicUrl.includes(url)) {
211-
// let newUrl = urls[index + 1]
212-
// if (!newUrl) return false
213-
// this.musicInfo.musicUrl = this.musicInfo.musicUrl.replace(url, newUrl)
214-
// // this.musicInfo.musicUrl = newUrl ? this.musicInfo.musicUrl.replace(url, newUrl) : this.setFormTag(this.musicInfo.musicUrl.replace(url, urls[0]))
215-
// return true
216-
// }
217-
// })) {
218-
// this.audio.src = this.musicInfo.musicUrl
219-
// // console.log(this.musicInfo.musicUrl)
220-
// } else {
221-
// this.handleNext()
222-
// }
207+
this.sendProgressEvent(this.progress, 'error')
223208
this.status = '音频加载出错,5 秒后切换下一首'
224209
this.addDelayNextTimeout()
225210
})
@@ -416,12 +401,12 @@ export default {
416401
}
417402
},
418403
setLrc(targetSong) {
419-
this.musicInfo.lrc = targetSong.lyric
404+
this.musicInfo.lrc = targetSong.lrc
420405
421406
let lrcP = this.musicInfo.lrc
422407
? Promise.resolve()
423408
: this.getLrc(targetSong).then(() => {
424-
this.musicInfo.lrc = targetSong.lyric
409+
this.musicInfo.lrc = targetSong.lrc
425410
})
426411
427412
lrcP

src/renderer/store/modules/player.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const mutations = {
6262
datas.musicInfo.img = datas.url
6363
},
6464
setLrc(state, datas) {
65-
datas.musicInfo.lyric = datas.lrc
65+
datas.musicInfo.lrc = datas.lrc
6666
},
6767
setList(state, { list, listId, index }) {
6868
state.list = list

src/renderer/utils/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export const updateSetting = setting => {
185185
},
186186
themeId: 0,
187187
sourceId: 'kw',
188-
apiSource: 'temp',
188+
apiSource: 'test',
189189
randomAnimate: true,
190190
ignoreVersion: null,
191191
}
@@ -202,7 +202,7 @@ export const updateSetting = setting => {
202202
objectDeepMerge(defaultSetting, overwriteSetting)
203203
setting = defaultSetting
204204
}
205-
if (setting.apiSource == 'messoer') setting.apiSource = 'temp' // 强制设置回 temp 接口源
205+
if (setting.apiSource != 'test') setting.apiSource = 'test' // 强制设置回 test 接口源
206206
return setting
207207
}
208208

src/renderer/utils/music/api-source.js

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
import kw_api_temp from './kw/api-temp'
2-
// import kw_api_messoer from './kw/api-messoer'
2+
import kw_api_test from './kw/api-test'
33
// import tx_api_messoer from './tx/api-messoer'
4-
// import kg_api_messoer from './kg/api-messoer'
5-
// import wy_api_messoer from './wy/api-messoer'
6-
// import bd_api_messoer from './bd/api-messoer'
7-
import kw_api_internal from './kw/api-internal'
8-
import tx_api_internal from './tx/api-internal'
9-
import kg_api_internal from './kg/api-internal'
10-
import wy_api_internal from './wy/api-internal'
11-
import bd_api_internal from './bd/api-internal'
4+
import kg_api_test from './kg/api-test'
5+
import wy_api_test from './wy/api-test'
6+
import bd_api_test from './bd/api-test'
7+
// import kw_api_internal from './kw/api-internal'
8+
// import tx_api_internal from './tx/api-internal'
9+
// import kg_api_internal from './kg/api-internal'
10+
// import wy_api_internal from './wy/api-internal'
11+
// import bd_api_internal from './bd/api-internal'
1212

1313
const apis = {
14-
// kw_api_messoer,
14+
kw_api_test,
1515
// tx_api_messoer,
16-
// kg_api_messoer,
17-
// wy_api_messoer,
18-
// bd_api_messoer,
19-
kw_api_internal,
20-
tx_api_internal,
21-
kg_api_internal,
22-
wy_api_internal,
23-
bd_api_internal,
16+
kg_api_test,
17+
wy_api_test,
18+
bd_api_test,
19+
// kw_api_internal,
20+
// tx_api_internal,
21+
// kg_api_internal,
22+
// wy_api_internal,
23+
// bd_api_internal,
2424
kw_api_temp,
2525
}
2626

@@ -29,8 +29,8 @@ const getAPI = source => {
2929
switch (window.globalObj.apiSource) {
3030
// case 'messoer':
3131
// return apis[`${source}_api_messoer`]
32-
case 'internal':
33-
return apis[`${source}_api_internal`]
32+
case 'test':
33+
return apis[`${source}_api_test`]
3434
case 'temp':
3535
return apis[`${source}_api_temp`]
3636
}

src/renderer/utils/music/bd/api-messoer.js renamed to src/renderer/utils/music/bd/api-test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { httpFatch } from '../../request'
22
import { requestMsg } from '../../message'
3-
import { headers, timeout } from '../messoer'
3+
import { headers, timeout } from '../options'
44

5-
const api_messoer = {
5+
const api_test = {
66
getMusicUrl(songInfo, type) {
7-
const requestObj = httpFatch(`https://v1.itooi.cn/baidu/url?id=${songInfo.songmid}&quality=${type.replace(/k$/, '')}&isRedirect=0`, {
7+
const requestObj = httpFatch(`http://45.32.53.128:3000/baidu/url?id=${songInfo.songmid}&quality=${type.replace(/k$/, '')}`, {
88
method: 'get',
99
timeout,
1010
headers,
@@ -15,7 +15,7 @@ const api_messoer = {
1515
return requestObj
1616
},
1717
getPic(songInfo, size = '500') {
18-
const requestObj = httpFatch(`https://v1.itooi.cn/baidu/pic?id=${songInfo.songmid}&imageSize=${size}&isRedirect=0`, {
18+
const requestObj = httpFatch(`http://45.32.53.128:3000/baidu/pic?id=${songInfo.songmid}&imageSize=${size}`, {
1919
method: 'get',
2020
timeout,
2121
headers,
@@ -26,7 +26,7 @@ const api_messoer = {
2626
return requestObj
2727
},
2828
getLyric(songInfo) {
29-
const requestObj = httpFatch(`https://v1.itooi.cn/baidu/lrc?id=${songInfo.songmid}&isRedirect=0`, {
29+
const requestObj = httpFatch(`http://45.32.53.128:3000/baidu/lrc?id=${songInfo.songmid}`, {
3030
method: 'get',
3131
timeout,
3232
headers,
@@ -38,4 +38,4 @@ const api_messoer = {
3838
},
3939
}
4040

41-
export default api_messoer
41+
export default api_test

0 commit comments

Comments
 (0)