Skip to content

Commit d83aee2

Browse files
committed
Merge branch 'dev'
2 parents 0164936 + 354a990 commit d83aee2

6 files changed

Lines changed: 15 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ 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+
## [1.12.1](https://github.com/lyswhut/lx-music-desktop/compare/v1.12.0...v1.12.1) - 2021-08-08
10+
11+
### 修复
12+
13+
- 修复随机播放下无法切歌的问题
14+
915
## [1.12.0](https://github.com/lyswhut/lx-music-desktop/compare/v1.11.0...v1.12.0) - 2021-08-08
1016

1117
### 新增

FAQ.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@
146146
此功能需要配合PC端使用,移动端与PC端处在同一个局域网(路由器的网络)下时,可以多端实时同步歌曲列表,使用方法:
147147

148148
1. 在PC端的设置-数据同步开启同步功能(这时如果出现安全软件、防火墙等提示网络连接弹窗时需要点击允许)
149-
2. 在移动端的设置-同步-同步服务器地址输入PC端显示的同步服务器地址(如果显示可以多个,则输入与**移动端上显示的本机地址**最相似的那个),端口号与PC端的同步端口一致
149+
2. 在移动端的设置-同步-同步服务器地址输入PC端显示的同步服务器地址(如果显示可以多个,则输入与**移动端上显示的本机地址**最相似的那个),端口号与PC端的同步端口一致**输入完毕后需要按一下键盘上的回车键使输入的内容生效**
150150
3. 输入完这两项后点击“启动同步”
151151
4. 若连接成功,对于首次同步时,若两边的设备的列表不为空,则PC端会弹出选择列表同步方式的弹窗,同步方式的说明弹窗下面有介绍
152152

153-
对于连接同步失败的可能原因
153+
对于连接同步服务失败的可能原因
154154

155155
- 此功能需要PC端与移动端都连接在同一个路由器下的网络才能使用
156156
- 路由器若开启了AP隔离,则此功能无法使用

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": "1.12.0",
3+
"version": "1.12.1",
44
"description": "一个免费的音乐查找助手",
55
"main": "./dist/electron/main.js",
66
"productName": "lx-music-desktop",

publish/changeLog.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
1-
### 新增
2-
3-
- 新增局域网同步功能(实验性,首次使用前建议先备份一次列表),此功能需要配合PC端使用,移动端与PC端处在同一个局域网(路由器的网络)下时,可以多端实时同步歌曲列表,使用问题请看"常见问题"。
4-
5-
### 优化
6-
7-
- 添加播放器对系统媒体控制与显示的兼容处理,现在在windows下的锁屏界面可以正确显示当前播放的音乐信息及切换歌曲了
8-
91
### 修复
102

11-
- 修复导入kg歌单最多只能加载100、500首歌曲的问题。注:现在可以加载1000+首歌曲的歌单,但出于未知原因会导致部分歌曲无法加载(可能是无版权导致的),目前酷狗码仍然最多只能加载500首歌
12-
- 修复某些情况下所显示的歌词、封面图片与当前正在播放的歌曲不一致的问题
3+
- 修复随机播放下无法切歌的问题

publish/version.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

src/renderer/store/modules/player.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ const actions = {
252252
if (state.playedList.length) {
253253
// 从已播放列表移除播放列表已删除的歌曲
254254
let index
255-
for (index = state.playedList.findIndex(m => m.songmid === state.playMusicInfo.musicInfo.songmid) - 1; index > -1; index--) {
255+
for (index = state.playedList.findIndex(m => m.musicInfo.songmid === state.playMusicInfo.musicInfo.songmid) - 1; index > -1; index--) {
256256
const playMusicInfo = state.playedList[index]
257257
if (playMusicInfo.listId == currentListId && !currentList.some(m => m.songmid === playMusicInfo.musicInfo.songmid)) {
258258
commit('removePlayedList', index)
@@ -322,10 +322,11 @@ const actions = {
322322
}
323323
const currentListId = state.listInfo.id
324324
const currentList = state.listInfo.list
325+
console.log(currentListId)
325326
if (state.playedList.length) {
326327
// 从已播放列表移除播放列表已删除的歌曲
327328
let index
328-
for (index = state.playedList.findIndex(m => m.songmid === state.playMusicInfo.musicInfo.songmid) + 1; index < state.playedList.length; index++) {
329+
for (index = state.playedList.findIndex(m => m.musicInfo.songmid === state.playMusicInfo.musicInfo.songmid) + 1; index < state.playedList.length; index++) {
329330
const playMusicInfo = state.playedList[index]
330331
if (playMusicInfo.listId == currentListId && !currentList.some(m => m.songmid === playMusicInfo.musicInfo.songmid)) {
331332
commit('removePlayedList', index)
@@ -362,6 +363,7 @@ const actions = {
362363
}
363364
let currentIndex = filteredList.findIndex(m => m.songmid == currentMusic.songmid)
364365
let nextIndex = currentIndex
366+
console.log(currentIndex)
365367
switch (rootState.setting.player.togglePlayMethod) {
366368
case 'listLoop':
367369
nextIndex = currentIndex === filteredList.length - 1 ? 0 : currentIndex + 1

0 commit comments

Comments
 (0)