mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/lyswhut/lx-music-desktop.git
synced 2026-09-20 08:04:00 +08:00
Compare commits
77 Commits
revert-269
...
ad95d5091c
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad95d5091c | ||
|
|
a04cf3b307 | ||
|
|
f9f0e61c5b | ||
|
|
d2f5485996 | ||
|
|
e20b2844fb | ||
|
|
e9bc6a572b | ||
|
|
bb8d07274f | ||
|
|
950029884c | ||
|
|
7c78e557ed | ||
|
|
78eb5c48d7 | ||
|
|
96fd33065a | ||
|
|
abcbf5fa00 | ||
|
|
378174c277 | ||
|
|
39466f157c | ||
|
|
d1fa51c2bb | ||
|
|
a0e16fc4f9 | ||
|
|
f64da62aa8 | ||
|
|
75185cb50b | ||
|
|
bf9b34b47f | ||
|
|
6573a5cc8a | ||
|
|
7c3ca2a0fc | ||
|
|
e8214393e9 | ||
|
|
f4f9496fda | ||
|
|
c68361719d | ||
|
|
936fcb79fa | ||
|
|
65ff972d1a | ||
|
|
9ff8ae2587 | ||
|
|
c0dd64c71c | ||
|
|
f3fbbb3720 | ||
|
|
5279fbba56 | ||
|
|
bbbbfeda12 | ||
|
|
75ba99d9d1 | ||
|
|
af4603d87b | ||
|
|
1cb9e2fd29 | ||
|
|
d5b1b3fd5f | ||
|
|
f0776becff | ||
|
|
03fea45166 | ||
|
|
905b2c3c42 | ||
|
|
21619e72dc | ||
|
|
33742bca6b | ||
|
|
e0575fc179 | ||
|
|
97fe5fa496 | ||
|
|
97533cd4aa | ||
|
|
a7672168c6 | ||
|
|
5c46ca648d | ||
|
|
38c7bc0d0d | ||
|
|
cb2798cba9 | ||
|
|
f0342b852b | ||
|
|
97346617a5 | ||
|
|
ecdc018fa1 | ||
|
|
cbcbe3e8c8 | ||
|
|
b12c5ed12b | ||
|
|
96921b255f | ||
|
|
2df1077ee4 | ||
|
|
4937ddb09c | ||
|
|
4b00a06a88 | ||
|
|
be48e78a6f | ||
|
|
b7a3663078 | ||
|
|
9c364b482e | ||
|
|
355c5e584b | ||
|
|
f956fd93d5 | ||
|
|
69e285d3ca | ||
|
|
728fed2ed3 | ||
|
|
bc0d2264a3 | ||
|
|
ba8a6bf76c | ||
|
|
2cf84a796d | ||
|
|
ba62ae27af | ||
|
|
e35895d752 | ||
|
|
cc192cab44 | ||
|
|
e36792b76a | ||
|
|
61231ab99e | ||
|
|
ae2ee0e61e | ||
|
|
a339f0fd0c | ||
|
|
b9c3c3506e | ||
|
|
44d96264fb | ||
|
|
19eab0418a | ||
|
|
0695bbaa70 |
26
.babelrc
26
.babelrc
@@ -1,26 +0,0 @@
|
||||
{
|
||||
"presets": [
|
||||
"@babel/preset-typescript",
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
"corejs": "3",
|
||||
"useBuiltIns": "usage"
|
||||
}
|
||||
]
|
||||
// [
|
||||
// "minify",
|
||||
// {
|
||||
// "builtIns": false,
|
||||
// "evaluate": false,
|
||||
// "mangle": false
|
||||
// }
|
||||
// ]
|
||||
],
|
||||
"plugins": [
|
||||
"@babel/plugin-syntax-dynamic-import",
|
||||
"@babel/plugin-transform-modules-umd",
|
||||
"@babel/plugin-transform-runtime",
|
||||
"@babel/plugin-transform-class-properties"
|
||||
]
|
||||
}
|
||||
@@ -55,7 +55,6 @@ const vueRule = {
|
||||
exports.base = {
|
||||
extends: ['standard'],
|
||||
rules: baseRule,
|
||||
parser: '@babel/eslint-parser',
|
||||
}
|
||||
|
||||
exports.html = {
|
||||
|
||||
4
.github/actions/setup/action.yml
vendored
4
.github/actions/setup/action.yml
vendored
@@ -5,7 +5,7 @@ runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '22'
|
||||
|
||||
@@ -16,7 +16,7 @@ runs:
|
||||
# https://docs.npmjs.com/cli/v10/configuring-npm/folders#cache
|
||||
- name: Cache node modules
|
||||
id: cache-npm
|
||||
uses: actions/cache@v4
|
||||
uses: actions/cache@v5
|
||||
with:
|
||||
path: ${{ env.NPM_CACHE }}
|
||||
key: ${{ runner.os }}-npm-cache-${{ hashFiles('package-lock.json') }}
|
||||
|
||||
42
.github/workflows/beta-pack.yml
vendored
42
.github/workflows/beta-pack.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Check out git repository
|
||||
# uses: actions/checkout@v4
|
||||
# uses: actions/checkout@v6
|
||||
|
||||
# - name: Install Node.js
|
||||
# uses: actions/setup-node@v4
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
# needs: CheckCode
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get npm cache directory
|
||||
shell: pwsh
|
||||
@@ -65,7 +65,7 @@ jobs:
|
||||
- name: Build Package Setup x64
|
||||
run: npm run pack:win:setup:x64
|
||||
- name: Upload Artifact Setup x64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-x64-Setup
|
||||
path: build/*-x64-Setup.exe
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
- name: Build Package 7z x64
|
||||
run: npm run pack:win:7z:x64
|
||||
- name: Upload Artifact 7z x64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-win_x64-green
|
||||
path: build/*win_x64-green.7z
|
||||
@@ -81,7 +81,7 @@ jobs:
|
||||
- name: Build Package Setup arm64
|
||||
run: npm run pack:win:setup:arm64
|
||||
- name: Upload Artifact Setup arm64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-arm64-Setup
|
||||
path: build/*-arm64-Setup.exe
|
||||
@@ -89,7 +89,7 @@ jobs:
|
||||
- name: Build Package 7z arm64
|
||||
run: npm run pack:win:7z:arm64
|
||||
- name: Upload Artifact 7z arm64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-win_arm64-green
|
||||
path: build/*win_arm64-green.7z
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
# needs: CheckCode
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get npm cache directory
|
||||
shell: pwsh
|
||||
@@ -132,13 +132,13 @@ jobs:
|
||||
|
||||
- name: Prepare win7 electron env
|
||||
run: |
|
||||
npm install electron@22
|
||||
npm install electron@22 better-sqlite3@12
|
||||
pip.exe install setuptools
|
||||
|
||||
- name: Build Package win7 Setup x64
|
||||
run: npm run pack:win7:setup:x64
|
||||
- name: Upload Artifact win7 Setup x64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-win7_x64-Setup
|
||||
path: build/*win7_x64-Setup.exe
|
||||
@@ -146,7 +146,7 @@ jobs:
|
||||
- name: Build Package win7 7z x64
|
||||
run: npm run pack:win7:7z:x64
|
||||
- name: Upload Artifact win7 7z x64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-win7_x64-green
|
||||
path: build/*win7_x64-green.7z
|
||||
@@ -154,7 +154,7 @@ jobs:
|
||||
- name: Build Package win7 7z x86
|
||||
run: npm run pack:win7:7z:x86
|
||||
- name: Upload Artifact win7 7z x86
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-win7_x86-green
|
||||
path: build/*win7_x86-green.7z
|
||||
@@ -170,7 +170,7 @@ jobs:
|
||||
# needs: CheckCode
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install python setuptools
|
||||
run: brew install python-setuptools
|
||||
@@ -195,14 +195,14 @@ jobs:
|
||||
npm run pack:mac:dmg:arm64
|
||||
|
||||
- name: Upload Artifact dmg
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-mac-dmg
|
||||
path: |
|
||||
build/*.dmg
|
||||
!build/*-arm64.dmg
|
||||
- name: Upload Artifact dmg
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-mac-dmg-arm64
|
||||
path: build/*-arm64.dmg
|
||||
@@ -221,7 +221,7 @@ jobs:
|
||||
run: sudo apt-get update && sudo apt-get install -y rpm libarchive-tools
|
||||
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get npm cache directory
|
||||
shell: bash
|
||||
@@ -240,7 +240,7 @@ jobs:
|
||||
- name: Build Package deb amd64
|
||||
run: npm run pack:linux:deb:amd64
|
||||
- name: Upload Artifact deb amd64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-deb-amd64
|
||||
path: build/*_amd64.deb
|
||||
@@ -248,7 +248,7 @@ jobs:
|
||||
- name: Build Package deb arm64
|
||||
run: npm run pack:linux:deb:arm64
|
||||
- name: Upload Artifact deb arm64
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-deb-arm64
|
||||
path: build/*_arm64.deb
|
||||
@@ -256,7 +256,7 @@ jobs:
|
||||
- name: Build Package deb armv7l
|
||||
run: npm run pack:linux:deb:armv7l
|
||||
- name: Upload Artifact deb armv7l
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-deb-armv7l
|
||||
path: build/*_armv7l.deb
|
||||
@@ -264,7 +264,7 @@ jobs:
|
||||
- name: Build Package x64 appImage
|
||||
run: npm run pack:linux:appImage
|
||||
- name: Upload Artifact x64 appImage
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-x64-appImage
|
||||
path: build/*_x64.AppImage
|
||||
@@ -272,7 +272,7 @@ jobs:
|
||||
- name: Build Package x64 rpm
|
||||
run: npm run pack:linux:rpm
|
||||
- name: Upload Artifact x64 rpm
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-x64-rpm
|
||||
path: build/*.x64.rpm
|
||||
@@ -280,7 +280,7 @@ jobs:
|
||||
- name: Build Package x64 pacman
|
||||
run: npm run pack:linux:pacman
|
||||
- name: Upload Artifact x64 pacman
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: lx-music-desktop-x64-pacman
|
||||
path: build/*_x64.pacman
|
||||
|
||||
4
.github/workflows/build-test.yml
vendored
4
.github/workflows/build-test.yml
vendored
@@ -11,10 +11,10 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 22
|
||||
|
||||
|
||||
2
.github/workflows/publish-version-info.yml
vendored
2
.github/workflows/publish-version-info.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Repository Dispatch
|
||||
uses: peter-evans/repository-dispatch@v2
|
||||
uses: peter-evans/repository-dispatch@v4
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
repository: lyswhut/lx-music-desktop-version-info
|
||||
|
||||
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Check out git repository
|
||||
# uses: actions/checkout@v4
|
||||
# uses: actions/checkout@v6
|
||||
|
||||
# - name: Install Node.js
|
||||
# uses: actions/setup-node@v4
|
||||
@@ -46,7 +46,7 @@ jobs:
|
||||
# needs: CheckCode
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get npm cache directory
|
||||
shell: pwsh
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
# needs: CheckCode
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get npm cache directory
|
||||
shell: pwsh
|
||||
@@ -112,7 +112,7 @@ jobs:
|
||||
|
||||
- name: Prepare win7 electron env
|
||||
run: |
|
||||
npm install electron@22
|
||||
npm install electron@22 better-sqlite3@12
|
||||
pip.exe install setuptools
|
||||
|
||||
- name: Release win7 package
|
||||
@@ -135,7 +135,7 @@ jobs:
|
||||
# needs: CheckCode
|
||||
steps:
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Install python3 setuptools
|
||||
run: brew install python-setuptools
|
||||
@@ -178,7 +178,7 @@ jobs:
|
||||
run: sudo apt-get update && sudo apt-get install -y rpm libarchive-tools
|
||||
|
||||
- name: Check out git repository
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Get npm cache directory
|
||||
shell: bash
|
||||
|
||||
14
.ncurc.js
14
.ncurc.js
@@ -14,10 +14,17 @@ module.exports = {
|
||||
'@types/node',
|
||||
'electron-debug',
|
||||
'eslint-webpack-plugin',
|
||||
'typescript',
|
||||
'undici',
|
||||
'@types/better-sqlite3',
|
||||
'changelog-parser',
|
||||
'webpack-dev-server',
|
||||
|
||||
'eslint-plugin-vue',
|
||||
'vue-eslint-parser',
|
||||
// 'eslint-config-standard-with-typescript',
|
||||
|
||||
'webpack',
|
||||
],
|
||||
|
||||
// target: 'newest',
|
||||
@@ -35,13 +42,18 @@ module.exports = {
|
||||
|
||||
// target: 'minor',
|
||||
// filter: [
|
||||
// // 'electron',
|
||||
// 'electron',
|
||||
// 'eslint',
|
||||
// 'eslint-webpack-plugin',
|
||||
// 'electron-debug',
|
||||
// 'typescript',
|
||||
// '@types/node',
|
||||
// 'undici',
|
||||
|
||||
// 'eslint-plugin-vue',
|
||||
// 'vue-eslint-parser',
|
||||
// 'better-sqlite3',
|
||||
// '@types/better-sqlite3',
|
||||
// 'webpack-dev-server',
|
||||
// ],
|
||||
}
|
||||
|
||||
85
CHANGELOG.md
85
CHANGELOG.md
@@ -6,6 +6,91 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
|
||||
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
|
||||
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
|
||||
|
||||
## [2.12.6](https://github.com/lyswhut/lx-music-desktop/compare/v2.12.5...v2.12.6) - 2026-09-19
|
||||
|
||||
目前新项目 Any Listen 的桌面版、Web 版已实现 LX Music 的大部分功能,并额外支持 WebDAV 歌曲播放、WebDAV 数据同步、独立播放列表等功能。
|
||||
以后的开发精力将主要集中在新项目上,之前大家在 LX Music 提的功能我们也会考虑在新项目中添加。
|
||||
对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。
|
||||
Any Listen 的项目地址为 https://github.com/any-listen/any-listen
|
||||
|
||||
### 优化
|
||||
|
||||
- 优化 tx 推荐歌单列表
|
||||
- 优化禁用透明窗口的窗口边框显示效果
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复打开某些 kg 歌单时歌曲丢失的问题
|
||||
- 修复 Windows 7 无法启动的问题
|
||||
- 修复禁用透明窗口时按 F11 无法全屏的问题
|
||||
|
||||
## [2.12.5](https://github.com/lyswhut/lx-music-desktop/compare/v2.12.4...v2.12.5) - 2026-09-14
|
||||
|
||||
目前新项目 Any Listen 的桌面版、Web 版已实现 LX Music 的大部分功能,并额外支持 WebDAV 歌曲播放、WebDAV 数据同步、独立播放列表等功能。
|
||||
以后的开发精力将主要集中在新项目上,之前大家在 LX Music 提的功能我们也会考虑在新项目中添加。
|
||||
对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。
|
||||
Any Listen 的项目地址为 https://github.com/any-listen/any-listen
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复自定义主题编辑器的颜色选择器默认值显示异常的问题(#2957)
|
||||
- 修复下载的 MP3 文件内嵌歌曲数据失败的问题(#2959)
|
||||
|
||||
## [2.12.4](https://github.com/lyswhut/lx-music-desktop/compare/v2.12.3...v2.12.4) - 2026-09-12
|
||||
|
||||
目前新项目 Any Listen 的桌面版、Web 版已实现 LX Music 的大部分功能,并额外支持 WebDAV 歌曲播放、WebDAV 数据同步、独立播放列表等功能。
|
||||
以后的开发精力将主要集中在新项目上,之前大家在 LX Music 提的功能我们也会考虑在新项目中添加。
|
||||
对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。
|
||||
Any Listen 的项目地址为 https://github.com/any-listen/any-listen
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复自定义主题背景图片无法显示的问题
|
||||
|
||||
## [2.12.3](https://github.com/lyswhut/lx-music-desktop/compare/v2.12.2...v2.12.3) - 2026-09-12
|
||||
|
||||
目前新项目 Any Listen 的桌面版、Web 版已实现 LX Music 的大部分功能,并额外支持 WebDAV 歌曲播放、WebDAV 数据同步、独立播放列表等功能。
|
||||
以后的开发精力将主要集中在新项目上,之前大家在 LX Music 提的功能我们也会考虑在新项目中添加。
|
||||
对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。
|
||||
Any Listen 的项目地址为 https://github.com/any-listen/any-listen
|
||||
|
||||
### 优化
|
||||
|
||||
- 优化kw歌单列表数据显示
|
||||
- 同步服务在连接时允许URL重定向
|
||||
- Linux 点击托盘时将显示主界面(#2840)
|
||||
- 优化自动换源歌曲匹配机制
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复 kg 搜索结果显示问题 (#2782)
|
||||
- 修复某些情况下开放 API 获取到的音量为 0 的问题 (#2790)
|
||||
- 修复 mg 图片、歌词获取
|
||||
- 修复某些 tx 歌单打开失败的问题 (#1060, @ght-000)
|
||||
- 修复在某些情况下添加、移动歌曲时可能导致保存的歌曲顺序不对的问题(#2842)
|
||||
- 修复歌词标签解析格式没有严格按照标准的问题(#2855)
|
||||
- 修复 tx 歌曲搜索失败的问题(#2848, @ikun0014)
|
||||
|
||||
## [2.12.2](https://github.com/lyswhut/lx-music-desktop/compare/v2.12.1...v2.12.2) - 2026-05-01
|
||||
|
||||
我们很高兴地宣布新项目 Any Listen 的桌面版已发布,目前已支持列表跟随本地文件自动更新、加载并播放WebDAV上的歌曲等功能,更多功能仍在积极开发中,桌面版与Web版将同步更新。
|
||||
对于有播放本地音乐或播放服务器上音乐需求的人可以试试,若遇到任何问题可以发 issue 反馈。
|
||||
|
||||
### 优化
|
||||
|
||||
- 优化歌单内歌曲搜索结果排序 (#2734)
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复桌面歌词的 鼠标移入歌词区域时提高透明度 设置不稳定的问题(#2679, @Little100)
|
||||
- 修复某些情况下可能播放没有声音的问题(#2693)
|
||||
- 修复 tx 搜索结果显示异常的问题(#2753)
|
||||
- 修复音乐名称和歌手信息格式化问题(#2733)
|
||||
|
||||
### 其他
|
||||
|
||||
- 更新 Electron 到 40.8.3
|
||||
|
||||
## [2.12.1](https://github.com/lyswhut/lx-music-desktop/compare/v2.12.0...v2.12.1) - 2026-02-16
|
||||
|
||||
我们很高兴地宣布新项目 Any Listen 的桌面版已发布,目前已支持列表跟随本地文件自动更新、加载并播放WebDAV上的歌曲等功能,更多功能仍在积极开发中,桌面版与Web版将同步更新。
|
||||
|
||||
@@ -47,7 +47,12 @@
|
||||
|
||||
*移动版项目地址:https://github.com/lyswhut/lx-music-mobile*
|
||||
|
||||
*LX Music 项目发展调整与新项目计划:https://github.com/lyswhut/lx-music-desktop/issues/1912*
|
||||
> [!NOTE]
|
||||
> 目前新项目 [Any Listen](https://github.com/any-listen/any-listen) 的桌面版、Web 版已实现 LX Music 的大部分功能,并额外支持 WebDAV 歌曲播放、WebDAV 数据同步、独立播放列表等功能。
|
||||
> 我们以后的开发精力将主要集中在新项目上,之前大家在 LX Music 提的功能我们也会考虑在新项目中添加。
|
||||
> 对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。
|
||||
>
|
||||
> 关于我们开发新项目的原因,可以参考:[LX Music 项目发展调整与新项目计划](https://github.com/lyswhut/lx-music-desktop/issues/1912)。
|
||||
|
||||
软件变化请查看[更新日志](https://github.com/lyswhut/lx-music-desktop/blob/master/CHANGELOG.md)。
|
||||
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
const { afterPack } = require('./deps')
|
||||
|
||||
const fs = require('fs').promises
|
||||
|
||||
// https://github.com/electron-userland/electron-builder/issues/4630
|
||||
// https://github.com/electron-userland/electron-builder/issues/4630#issuecomment-782020139
|
||||
|
||||
module.exports = async(context) => {
|
||||
await afterPack()
|
||||
const { electronPlatformName, appOutDir } = context
|
||||
if (electronPlatformName !== 'darwin') return
|
||||
const {
|
||||
|
||||
@@ -1,79 +1,60 @@
|
||||
const fs = require('fs')
|
||||
const fsPromises = require('fs').promises
|
||||
const path = require('path')
|
||||
// const fs = require('fs')
|
||||
// const fsPromises = require('fs').promises
|
||||
// const path = require('path')
|
||||
const { Arch } = require('electron-builder')
|
||||
const nodeAbi = require('node-abi')
|
||||
// const nodeAbi = require('node-abi')
|
||||
const { beforePack, copyLib } = require('./deps')
|
||||
|
||||
const better_sqlite3_fileNameMap = {
|
||||
[Arch.x64]: 'linux-x64',
|
||||
[Arch.arm64]: 'linux-arm64',
|
||||
[Arch.armv7l]: 'linux-arm',
|
||||
// const better_sqlite3_fileNameMap = {
|
||||
// [Arch.x64]: 'linux-x64',
|
||||
// [Arch.arm64]: 'linux-arm64',
|
||||
// [Arch.armv7l]: 'linux-arm',
|
||||
// }
|
||||
|
||||
// const replaceSqliteLib = async(arch) => {
|
||||
// // console.log(await fs.readdir(path.join(context.appOutDir, './resources/')))
|
||||
// // if (context.electronPlatformName != 'linux' || context.arch != Arch.arm64) return
|
||||
// // https://github.com/lyswhut/lx-music-desktop/issues/1102
|
||||
// // https://github.com/lyswhut/lx-music-desktop/issues/1161
|
||||
// console.log('replace sqlite lib...')
|
||||
// const filePath = path.join(__dirname, `./lib/better_sqlite3_${better_sqlite3_fileNameMap[arch]}.node`)
|
||||
// console.log(filePath)
|
||||
// const targetPath = path.join(__dirname, '../node_modules/better-sqlite3/build/Release/better_sqlite3.node')
|
||||
// await fsPromises.unlink(targetPath).catch(_ => _)
|
||||
// await fsPromises.copyFile(filePath, targetPath)
|
||||
// }
|
||||
|
||||
const archMap = {
|
||||
[Arch.x64]: 'x64',
|
||||
[Arch.ia32]: 'ia32',
|
||||
[Arch.arm64]: 'arm64',
|
||||
[Arch.armv7l]: 'arm',
|
||||
}
|
||||
|
||||
const qrc_decode_fileNameMap = {
|
||||
win32: {
|
||||
[Arch.x64]: 'win32-x64',
|
||||
[Arch.ia32]: 'win32-ia32',
|
||||
[Arch.arm64]: 'win32-arm64',
|
||||
},
|
||||
linux: {
|
||||
[Arch.x64]: 'linux-x64',
|
||||
[Arch.arm64]: 'linux-arm64',
|
||||
[Arch.armv7l]: 'linux-arm',
|
||||
},
|
||||
darwin: {
|
||||
[Arch.x64]: 'darwin-x64',
|
||||
[Arch.arm64]: 'darwin-arm64',
|
||||
},
|
||||
}
|
||||
|
||||
const replaceSqliteLib = async(electronNodeAbi, arch) => {
|
||||
// console.log(await fs.readdir(path.join(context.appOutDir, './resources/')))
|
||||
// if (context.electronPlatformName != 'linux' || context.arch != Arch.arm64) return
|
||||
// https://github.com/lyswhut/lx-music-desktop/issues/1102
|
||||
// https://github.com/lyswhut/lx-music-desktop/issues/1161
|
||||
console.log('replace sqlite lib...')
|
||||
const filePath = path.join(__dirname, `./lib/better_sqlite3_electron-v${electronNodeAbi}-${better_sqlite3_fileNameMap[arch]}.node`)
|
||||
console.log(filePath)
|
||||
const targetPath = path.join(__dirname, '../node_modules/better-sqlite3/build/Release/better_sqlite3.node')
|
||||
await fsPromises.unlink(targetPath).catch(_ => _)
|
||||
await fsPromises.copyFile(filePath, targetPath)
|
||||
}
|
||||
|
||||
const replaceQrcDecodeLib = async(electronNodeAbi, platform, arch) => {
|
||||
console.log('replace qrc_decode lib...', platform, electronNodeAbi, qrc_decode_fileNameMap[platform][arch])
|
||||
const filePath = path.join(__dirname, `./lib/qrc_decode_electron-v${electronNodeAbi}-${qrc_decode_fileNameMap[platform][arch]}.node`)
|
||||
const targetPath = path.join(__dirname, '../build/Release/qrc_decode.node')
|
||||
const targetDir = path.dirname(targetPath)
|
||||
if (fs.existsSync(targetDir)) await fsPromises.unlink(targetPath).catch(_ => _)
|
||||
else await fsPromises.mkdir(targetDir, { recursive: true })
|
||||
await fsPromises.copyFile(filePath, targetPath)
|
||||
}
|
||||
|
||||
|
||||
module.exports = async(context) => {
|
||||
const { electronPlatformName, arch } = context
|
||||
await beforePack()
|
||||
const { arch } = context
|
||||
const electronVersion = context.packager?.info?._framework?.version ?? require('../package.json').devDependencies.electron.replace(/^[^\d]*?(\d+)/, '$1')
|
||||
const electronNodeAbi = nodeAbi.getAbi(electronVersion, 'electron')
|
||||
await replaceQrcDecodeLib(electronNodeAbi, electronPlatformName, arch)
|
||||
if (electronPlatformName !== 'linux' || process.env.FORCE) return
|
||||
const bindingFilePath = path.join(__dirname, '../node_modules/better-sqlite3/binding.gyp')
|
||||
const bindingBakFilePath = path.join(__dirname, '../node_modules/better-sqlite3/binding.gyp.bak')
|
||||
switch (arch) {
|
||||
case Arch.x64:
|
||||
case Arch.arm64:
|
||||
case Arch.armv7l:
|
||||
if (fs.existsSync(bindingFilePath)) {
|
||||
// console.log('rename binding file...')
|
||||
await fsPromises.rename(bindingFilePath, bindingBakFilePath)
|
||||
}
|
||||
await replaceSqliteLib(electronNodeAbi, arch)
|
||||
break
|
||||
await copyLib(archMap[arch], parseInt(electronVersion) == 22)
|
||||
// const electronNodeAbi = nodeAbi.getAbi(electronVersion, 'electron')
|
||||
// if (electronPlatformName !== 'linux' || process.env.FORCE) return
|
||||
// // const bindingFilePath = path.join(__dirname, '../node_modules/better-sqlite3/binding.gyp')
|
||||
// // const bindingBakFilePath = path.join(__dirname, '../node_modules/better-sqlite3/binding.gyp.bak')
|
||||
// switch (arch) {
|
||||
// case Arch.x64:
|
||||
// case Arch.arm64:
|
||||
// case Arch.armv7l:
|
||||
// // if (fs.existsSync(bindingFilePath)) {
|
||||
// // // console.log('rename binding file...')
|
||||
// // await fsPromises.rename(bindingFilePath, bindingBakFilePath)
|
||||
// // }
|
||||
// await replaceSqliteLib(arch)
|
||||
// break
|
||||
|
||||
default:
|
||||
if (fs.existsSync(bindingFilePath)) return
|
||||
// console.log('restore binding file...')
|
||||
await fsPromises.rename(bindingBakFilePath, bindingFilePath)
|
||||
break
|
||||
}
|
||||
// default:
|
||||
// // if (fs.existsSync(bindingFilePath)) return
|
||||
// // console.log('restore binding file...')
|
||||
// // await fsPromises.rename(bindingBakFilePath, bindingFilePath)
|
||||
// await copyLib(arch)
|
||||
// break
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -35,7 +35,6 @@ const options = {
|
||||
'node_modules/node-gyp-build',
|
||||
'node_modules/bufferutil',
|
||||
'node_modules/utf-8-validate',
|
||||
'build/Release/qrc_decode.node',
|
||||
'dist/**/*',
|
||||
],
|
||||
asar: {
|
||||
|
||||
@@ -6,20 +6,28 @@ const path = require('node:path')
|
||||
const rootPath = path.join(__dirname, '../')
|
||||
|
||||
const patchs = [
|
||||
// [
|
||||
// path.join(rootPath, './node_modules/ws/package.json'),
|
||||
// '\n "browser": "./browser.js",',
|
||||
// '',
|
||||
// ],
|
||||
// [
|
||||
// path.join(rootPath, './node_modules/music-metadata/package.json'),
|
||||
// '"default": "./lib/core.js"',
|
||||
// '"default": "./lib/index.js"',
|
||||
// ],
|
||||
// [
|
||||
// path.join(rootPath, './node_modules/strtok3/package.json'),
|
||||
// '"default": "./lib/core.js"',
|
||||
// '"default": "./lib/index.js"',
|
||||
// ],
|
||||
[
|
||||
path.join(rootPath, './node_modules/ws/package.json'),
|
||||
'\n "browser": "./browser.js",',
|
||||
'',
|
||||
],
|
||||
[
|
||||
path.join(rootPath, './node_modules/music-metadata/package.json'),
|
||||
'"default": "./lib/core.js"',
|
||||
'"default": "./lib/index.js"',
|
||||
],
|
||||
[
|
||||
path.join(rootPath, './node_modules/strtok3/package.json'),
|
||||
'"default": "./lib/core.js"',
|
||||
'"default": "./lib/index.js"',
|
||||
path.join(rootPath, './node_modules/better-sqlite3/package.json'),
|
||||
`{
|
||||
"build-release": "node-gyp clean && node-gyp rebuild --release --force_build=1",`,
|
||||
`{
|
||||
"install": "node -e \\"process.exit(require('fs').existsSync('build/Release/better_sqlite3.node') ? 0 : 1)\\" || node-gyp rebuild --release --force_build=1",
|
||||
"build-release": "node-gyp clean && node-gyp rebuild --release --force_build=1",`,
|
||||
],
|
||||
]
|
||||
|
||||
|
||||
55
build-config/deps.js
Normal file
55
build-config/deps.js
Normal file
@@ -0,0 +1,55 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const bindingFilePath = path.join(__dirname, '../node_modules/better-sqlite3/binding.gyp')
|
||||
const bindingBakFilePath = path.join(__dirname, '../node_modules/better-sqlite3/binding.gyp.bak')
|
||||
exports.beforePack = async() => {
|
||||
if (!fs.existsSync(bindingFilePath)) return
|
||||
fs.renameSync(bindingFilePath, bindingBakFilePath)
|
||||
// try {
|
||||
// fs.writeFileSync(
|
||||
// bindingFilePath,
|
||||
// fs.readFileSync(bindingFilePath, 'utf-8').replace('\'force_build%\': 0,', '\'force_build%\': 1,'),
|
||||
// )
|
||||
// } catch (error) {
|
||||
// console.error(error)
|
||||
// }
|
||||
}
|
||||
exports.afterPack = async() => {
|
||||
if (fs.existsSync(bindingFilePath)) return
|
||||
fs.renameSync(bindingBakFilePath, bindingFilePath)
|
||||
// try {
|
||||
// fs.writeFileSync(
|
||||
// bindingFilePath,
|
||||
// fs.readFileSync(bindingFilePath, 'utf-8').replace('\'force_build%\': 1,', '\'force_build%\': 0,'),
|
||||
// )
|
||||
// } catch (error) {
|
||||
// console.error(error)
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
const replaceSqliteLib = async(arch) => {
|
||||
// console.log(await fs.readdir(path.join(context.appOutDir, './resources/')))
|
||||
// if (context.electronPlatformName != 'linux' || context.arch != Arch.arm64) return
|
||||
// https://github.com/lyswhut/lx-music-desktop/issues/1102
|
||||
// https://github.com/lyswhut/lx-music-desktop/issues/1161
|
||||
console.log('replace sqlite lib...')
|
||||
const filePath = path.join(__dirname, `./lib/better_sqlite3_${process.platform}-${arch}.node`)
|
||||
console.log(filePath)
|
||||
const targetPath = path.join(__dirname, '../node_modules/better-sqlite3/build/Release/better_sqlite3.node')
|
||||
await fs.promises.unlink(targetPath).catch(_ => _)
|
||||
await fs.promises.copyFile(filePath, targetPath)
|
||||
}
|
||||
exports.copyLib = async(arch = process.arch, replaceLocal = false) => {
|
||||
if (process.platform === 'linux' || replaceLocal) {
|
||||
await replaceSqliteLib(arch)
|
||||
return
|
||||
}
|
||||
const libPath = path.join(__dirname, `../node_modules/better-sqlite3/prebuilds/${process.platform}-${arch}.node`)
|
||||
if (!fs.existsSync(libPath)) {
|
||||
console.error(`Better-sqlite3 prebuild not found for ${process.platform}-${arch}`)
|
||||
return
|
||||
}
|
||||
const targetPath = path.join(__dirname, '../node_modules/better-sqlite3/build/Release/better_sqlite3.node')
|
||||
await fs.promises.cp(libPath, targetPath, { recursive: true, force: true })
|
||||
}
|
||||
@@ -9,7 +9,7 @@ const getGzipFiles = async() => {
|
||||
// for (const name of names) {
|
||||
// if (name.endsWith('.node')) await fs.promises.unlink(path.join(libDir, name))
|
||||
// }
|
||||
return names.filter(name => name.endsWith('.gz'))
|
||||
return names.filter((name) => name.endsWith('.gz'))
|
||||
}
|
||||
|
||||
const unzip = async(filePath) => {
|
||||
@@ -18,23 +18,20 @@ const unzip = async(filePath) => {
|
||||
await fs.promises.mkdir(targetDir)
|
||||
await tar.x({
|
||||
file: filePath,
|
||||
strip: 1,
|
||||
strip: 0,
|
||||
C: targetDir,
|
||||
})
|
||||
return targetDir
|
||||
}
|
||||
|
||||
const files = [
|
||||
'qrc_decode',
|
||||
'better_sqlite3',
|
||||
]
|
||||
const files = ['better_sqlite3']
|
||||
const moveFile = async(filePath) => {
|
||||
const name = 'electron-' + path.basename(filePath).split('-electron-')[1]
|
||||
const name = `${path.basename(filePath).split('_v')[0].replace('_', '-')}`
|
||||
for (const fileName of files) {
|
||||
if (fileName == 'better_sqlite3' && !name.includes('linux')) continue
|
||||
// if (fileName == 'better_sqlite3' && !name.includes('linux')) continue
|
||||
const targetPath = path.join(libDir, `${fileName}_${name}.node`)
|
||||
if (fs.existsSync(targetPath)) await fs.promises.unlink(targetPath)
|
||||
await fs.promises.rename(path.join(filePath, 'Release', fileName + '.node'), targetPath)
|
||||
await fs.promises.rename(path.join(filePath, `${fileName}.node`), targetPath)
|
||||
}
|
||||
await fs.promises.rm(filePath, { recursive: true })
|
||||
}
|
||||
@@ -50,4 +47,3 @@ const run = async() => {
|
||||
}
|
||||
|
||||
run()
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
build-config/lib/better_sqlite3_linux-arm.node
Normal file
BIN
build-config/lib/better_sqlite3_linux-arm.node
Normal file
Binary file not shown.
BIN
build-config/lib/better_sqlite3_linux-arm64.node
Normal file
BIN
build-config/lib/better_sqlite3_linux-arm64.node
Normal file
Binary file not shown.
BIN
build-config/lib/better_sqlite3_linux-x64.node
Normal file
BIN
build-config/lib/better_sqlite3_linux-x64.node
Normal file
Binary file not shown.
BIN
build-config/lib/better_sqlite3_win32-ia32.node
Normal file
BIN
build-config/lib/better_sqlite3_win32-ia32.node
Normal file
Binary file not shown.
BIN
build-config/lib/better_sqlite3_win32-x64.node
Normal file
BIN
build-config/lib/better_sqlite3_win32-x64.node
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,8 +1,6 @@
|
||||
const path = require('path')
|
||||
const ESLintPlugin = require('eslint-webpack-plugin')
|
||||
|
||||
const isDev = process.env.NODE_ENV === 'development'
|
||||
|
||||
module.exports = {
|
||||
target: 'electron-main',
|
||||
output: {
|
||||
@@ -18,7 +16,6 @@ module.exports = {
|
||||
'electron-font-manager': 'electron-font-manager',
|
||||
bufferutil: 'bufferutil',
|
||||
'utf-8-validate': 'utf-8-validate',
|
||||
'qrc_decode.node': isDev ? path.join(__dirname, '../../build/Release/qrc_decode.node') : path.join('../build/Release/qrc_decode.node'),
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
||||
@@ -37,6 +37,7 @@ module.exports = merge(baseConfig, {
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
NODE_ENV: '"production"',
|
||||
BUILD_WIN7: `'${process.env.BUILD_WIN7}'`,
|
||||
},
|
||||
}),
|
||||
],
|
||||
|
||||
3
build-config/postinstall.js
Normal file
3
build-config/postinstall.js
Normal file
@@ -0,0 +1,3 @@
|
||||
const { copyLib } = require('./deps')
|
||||
|
||||
copyLib()
|
||||
@@ -19,15 +19,6 @@ module.exports = merge(baseConfig, {
|
||||
externals: [
|
||||
// ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
||||
@@ -18,15 +18,6 @@ module.exports = merge(baseConfig, {
|
||||
externals: [
|
||||
// ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new webpack.DefinePlugin({
|
||||
'process.env': {
|
||||
|
||||
@@ -39,15 +39,6 @@ module.exports = merge(baseConfig, {
|
||||
externals: [
|
||||
// ...Object.keys(dependencies || {}).filter(d => !whiteListedModules.includes(d)),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
loader: 'babel-loader',
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
plugins: [
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"rootDir": "./",
|
||||
"paths": {
|
||||
"@main/*": ["src/main/*"],
|
||||
"@renderer/*": ["src/renderer/*"],
|
||||
"@lyric/*": ["src/renderer-lyric/*"],
|
||||
"@static/*": ["src/static/*"],
|
||||
"@common/*": ["src/common/*"],
|
||||
"@main/*": ["./src/main/*"],
|
||||
"@renderer/*": ["./src/renderer/*"],
|
||||
"@lyric/*": ["./src/renderer-lyric/*"],
|
||||
"@static/*": ["./src/static/*"],
|
||||
"@common/*": ["./src/common/*"],
|
||||
}
|
||||
},
|
||||
"vueCompilerOptions": {
|
||||
|
||||
7055
package-lock.json
generated
7055
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
93
package.json
93
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "lx-music-desktop",
|
||||
"version": "2.12.1",
|
||||
"version": "2.12.6",
|
||||
"description": "一个免费的音乐查找助手",
|
||||
"main": "./dist/main.js",
|
||||
"scripts": {
|
||||
@@ -63,7 +63,7 @@
|
||||
"build:renderer-scripts": "cross-env NODE_ENV=production webpack --config build-config/renderer-scripts/webpack.config.prod.js --progress",
|
||||
"lint": "eslint --ext .ts,.js,.vue -f node_modules/eslint-formatter-friendly src",
|
||||
"lint:fix": "eslint --ext .ts,.js,.vue -f node_modules/eslint-formatter-friendly --fix src",
|
||||
"postinstall": "electron-builder install-app-deps",
|
||||
"postinstall": "node build-config/postinstall.js",
|
||||
"dp": "cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=http://127.0.0.1:2081 npm run pack",
|
||||
"up": "cross-env ELECTRON_GET_USE_PROXY=true GLOBAL_AGENT_HTTPS_PROXY=http://127.0.0.1:2081 npm i"
|
||||
},
|
||||
@@ -107,97 +107,87 @@
|
||||
},
|
||||
"homepage": "https://github.com/lyswhut/lx-music-desktop#readme",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.29.0",
|
||||
"@babel/eslint-parser": "^7.28.6",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-class-properties": "^7.28.6",
|
||||
"@babel/plugin-transform-modules-umd": "^7.27.1",
|
||||
"@babel/plugin-transform-runtime": "^7.29.0",
|
||||
"@babel/preset-env": "^7.29.0",
|
||||
"@babel/preset-typescript": "^7.28.5",
|
||||
"@babel/runtime": "^7.28.6",
|
||||
"@tsconfig/recommended": "^1.0.13",
|
||||
"@types/better-sqlite3": "^7.6.13",
|
||||
"@types/needle": "^3.3.0",
|
||||
"@types/node": "^20.19.33",
|
||||
"@types/node": "^20.19.43",
|
||||
"@types/tunnel": "^0.0.7",
|
||||
"@types/ws": "8.5.4",
|
||||
"@vue/language-plugin-pug": "^3.2.4",
|
||||
"babel-loader": "^10.0.0",
|
||||
"browserslist": "^4.28.1",
|
||||
"@vue/language-plugin-pug": "^3.3.11",
|
||||
"browserslist": "^4.28.9",
|
||||
"chalk": "^4.1.2",
|
||||
"changelog-parser": "^3.0.1",
|
||||
"copy-webpack-plugin": "^13.0.1",
|
||||
"core-js": "^3.48.0",
|
||||
"changelog-parser": "3.0.1",
|
||||
"copy-webpack-plugin": "^14.0.0",
|
||||
"core-js": "^3.50.0",
|
||||
"cross-env": "^10.1.0",
|
||||
"css-loader": "^7.1.3",
|
||||
"css-minimizer-webpack-plugin": "^7.0.4",
|
||||
"css-loader": "^7.1.5",
|
||||
"css-minimizer-webpack-plugin": "^8.0.0",
|
||||
"del": "^6.1.1",
|
||||
"electron": "37.6.1",
|
||||
"electron-builder": "^26.8.0",
|
||||
"electron": "42.11.6",
|
||||
"electron-builder": "^26.15.7",
|
||||
"electron-debug": "^3.2.0",
|
||||
"electron-devtools-installer": "github:lyswhut/electron-devtools-installer#64596d615c1fc891eefd8aef1dfcb2c87aaadf03",
|
||||
"electron-to-chromium": "^1.5.286",
|
||||
"electron-updater": "6.8.3",
|
||||
"electron-to-chromium": "^1.5.427",
|
||||
"electron-updater": "6.8.9",
|
||||
"eslint": "^8.57.1",
|
||||
"eslint-config-standard": "^17.1.0",
|
||||
"eslint-config-standard-with-typescript": "^43.0.1",
|
||||
"eslint-formatter-friendly": "github:lyswhut/eslint-friendly-formatter#2170d1320e2fad13615a9dcf229669f0bb473a53",
|
||||
"eslint-plugin-html": "^8.1.4",
|
||||
"eslint-plugin-html": "^8.2.0",
|
||||
"eslint-plugin-vue": "^9.33.0",
|
||||
"eslint-plugin-vue-pug": "^0.6.2",
|
||||
"eslint-webpack-plugin": "^4.2.0",
|
||||
"html-webpack-plugin": "^5.6.6",
|
||||
"less": "^4.5.1",
|
||||
"less-loader": "^12.3.1",
|
||||
"mini-css-extract-plugin": "^2.10.0",
|
||||
"html-webpack-plugin": "^5.6.8",
|
||||
"less": "^4.9.1",
|
||||
"less-loader": "^13.0.0",
|
||||
"mini-css-extract-plugin": "^2.10.2",
|
||||
"node-loader": "^2.1.0",
|
||||
"postcss": "^8.5.6",
|
||||
"postcss": "^8.5.28",
|
||||
"postcss-loader": "^8.2.1",
|
||||
"postcss-pxtorem": "^6.1.0",
|
||||
"pug": "^3.0.3",
|
||||
"pug": "^3.0.4",
|
||||
"pug-plain-loader": "^1.1.0",
|
||||
"rimraf": "^6.1.3",
|
||||
"spinnies": "github:lyswhut/spinnies#233305c58694aa3b053e3ab9af9049993f918b9d",
|
||||
"svg-sprite-loader": "^6.0.11",
|
||||
"svg-transform-loader": "^2.0.13",
|
||||
"svgo-loader": "^4.0.0",
|
||||
"terser": "^5.46.0",
|
||||
"terser-webpack-plugin": "^5.3.16",
|
||||
"svgo-loader": "^5.0.0",
|
||||
"terser": "^5.51.2",
|
||||
"terser-webpack-plugin": "^5.6.1",
|
||||
"tree-kill": "^1.2.2",
|
||||
"ts-loader": "^9.5.4",
|
||||
"ts-loader": "^9.6.2",
|
||||
"typescript": "5.9.3",
|
||||
"vue-eslint-parser": "^9.4.3",
|
||||
"vue-loader": "^17.4.2",
|
||||
"webpack": "^5.105.2",
|
||||
"webpack-cli": "^6.0.1",
|
||||
"webpack-dev-server": "5.2.3",
|
||||
"webpack": "5.106.2",
|
||||
"webpack-cli": "^7.2.3",
|
||||
"webpack-dev-server": "5.2.6",
|
||||
"webpack-hot-middleware": "github:lyswhut/webpack-hot-middleware#329c4375134b89d39da23a56a94db651247c74a1",
|
||||
"webpack-merge": "^6.0.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@simonwep/pickr": "^1.9.1",
|
||||
"better-sqlite3": "^12.6.2",
|
||||
"@simonwep/pickr": "1.9.1",
|
||||
"better-sqlite3": "^13.0.3",
|
||||
"bufferutil": "^4.1.0",
|
||||
"comlink": "~4.3.1",
|
||||
"crypto-js": "^4.2.0",
|
||||
"electron-log": "^5.4.3",
|
||||
"font-list": "^2.0.2",
|
||||
"iconv-lite": "^0.7.2",
|
||||
"electron-log": "^5.4.4",
|
||||
"font-list": "^2.1.0",
|
||||
"iconv-lite": "^0.7.3",
|
||||
"image-size": "^1.1.0",
|
||||
"jschardet": "^3.1.4",
|
||||
"long": "^5.3.2",
|
||||
"message2call": "^0.1.3",
|
||||
"music-metadata": "^11.12.0",
|
||||
"music-metadata": "^11.15.0",
|
||||
"needle": "github:lyswhut/needle#93299ac841b7e9a9f82ca7279b88aaaeda404060",
|
||||
"node-id3": "^0.2.9",
|
||||
"sortablejs": "^1.15.7",
|
||||
"tunnel": "^0.0.6",
|
||||
"undici": "^7.22.0",
|
||||
"undici": "^7.29.1",
|
||||
"utf-8-validate": "^6.0.6",
|
||||
"vue": "~3.3.13",
|
||||
"vue-router": "~4.5.1",
|
||||
"ws": "^8.19.0"
|
||||
"ws": "^8.21.3"
|
||||
},
|
||||
"overrides": {
|
||||
"got": "^11",
|
||||
@@ -205,6 +195,11 @@
|
||||
"node-abi": "latest",
|
||||
"minimatch": "latest",
|
||||
"semver": "latest",
|
||||
"posthtml": "latest",
|
||||
"node-gyp": "latest",
|
||||
"sockjs": {
|
||||
"uuid": "^12"
|
||||
},
|
||||
"svg-transform-loader": {
|
||||
"postcss": "^8"
|
||||
},
|
||||
@@ -218,5 +213,11 @@
|
||||
"node-gyp-build": "latest",
|
||||
"micromatch": "latest",
|
||||
"http-cache-semantics": "latest"
|
||||
},
|
||||
"allowScripts": {
|
||||
"bufferutil": false,
|
||||
"core-js": false,
|
||||
"electron-winstaller": false,
|
||||
"utf-8-validate": false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,15 @@
|
||||
我们很高兴地宣布新项目 Any Listen 的桌面版已发布,目前已支持列表跟随本地文件自动更新、加载并播放WebDAV上的歌曲等功能,更多功能仍在积极开发中,桌面版与Web版将同步更新。
|
||||
对于有播放本地音乐或播放服务器上音乐需求的人可以试试,若遇到任何问题可以发 issue 反馈。
|
||||
目前新项目 Any Listen 的桌面版、Web 版已实现 LX Music 的大部分功能,并额外支持 WebDAV 歌曲播放、WebDAV 数据同步、独立播放列表等功能。
|
||||
以后的开发精力将主要集中在新项目上,之前大家在 LX Music 提的功能我们也会考虑在新项目中添加。
|
||||
对于日常使用 LX Music 的人可以试试迁移到 Any Listen,若遇到任何问题可以发 issue 反馈。
|
||||
Any Listen 的项目地址为 https://github.com/any-listen/any-listen
|
||||
|
||||
### 优化
|
||||
|
||||
- 优化托盘图标行为:在非 Windows 系统中,点击托盘图标时不再显示主窗口
|
||||
- 优化 tx 推荐歌单列表
|
||||
- 优化禁用透明窗口的窗口边框显示效果
|
||||
|
||||
### 修复
|
||||
|
||||
- 修复音量条在调整音量时实际音量与显示的数值不一致的问题(#2606)
|
||||
- 修复某些情况下搜索框的搜索按钮布局错位的问题(#2622)
|
||||
- 修复 wyy 部分歌曲无法被搜索的问题(#2666, @ikun0014)
|
||||
- 修复打开某些 kg 歌单时歌曲丢失的问题
|
||||
- 修复 Windows 7 无法启动的问题
|
||||
- 修复禁用透明窗口时按 F11 无法全屏的问题
|
||||
|
||||
@@ -34,7 +34,7 @@ function fm(value) {
|
||||
exports.sizeFormate = size => {
|
||||
// https://gist.github.com/thomseddon/3511330
|
||||
if (!size) return '0 b'
|
||||
let units = ['b', 'kB', 'MB', 'GB', 'TB']
|
||||
let units = ['B', 'KiB', 'MiB', 'GiB', 'TiB']
|
||||
let number = Math.floor(Math.log(size) / Math.log(1024))
|
||||
return `${(size / Math.pow(1024, Math.floor(number))).toFixed(2)} ${units[number]}`
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -78,10 +78,6 @@ const modules = {
|
||||
|
||||
restart_window: 'restart_window',
|
||||
|
||||
// lang_s2t: 'lang_s2t',
|
||||
|
||||
handle_kw_decode_lyric: 'handle_kw_decode_lyric',
|
||||
handle_tx_decode_lyric: 'handle_tx_decode_lyric',
|
||||
get_lyric_info: 'get_lyric_info',
|
||||
set_lyric_info: 'set_lyric_info',
|
||||
set_config: 'set_config',
|
||||
@@ -166,6 +162,7 @@ const modules = {
|
||||
key_down: 'key_down',
|
||||
request_main_window_channel: 'request_main_window_channel',
|
||||
provide_main_window_channel: 'provide_main_window_channel',
|
||||
mouse_enter_leave: 'mouse_enter_leave',
|
||||
},
|
||||
hotKey: {
|
||||
enable: 'enable',
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"./types"
|
||||
],
|
||||
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
"@common/*": ["common/*"],
|
||||
"@common/*": ["./*"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
1
src/common/types/music.d.ts
vendored
1
src/common/types/music.d.ts
vendored
@@ -58,6 +58,7 @@ declare namespace LX {
|
||||
qualitys: MusicQualityTypeKg[]
|
||||
_qualitys: _MusicQualityTypeKg
|
||||
hash: string // 歌曲hash
|
||||
albumAudioId?: string // 专辑内歌曲ID(MixSongID),用于歌词精确搜索
|
||||
}
|
||||
interface MusicInfo_kg extends MusicInfoBase<'kg'> {
|
||||
meta: MusicInfoMeta_kg
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// 非业务工具方法
|
||||
|
||||
import { pathToFileURL } from 'url'
|
||||
/**
|
||||
* 获取两个数之间的随机整数,大于等于min,小于max
|
||||
* @param {*} min
|
||||
@@ -11,7 +12,7 @@ export const getRandom = (min: number, max: number): number => Math.floor(Math.r
|
||||
export const sizeFormate = (size: number): string => {
|
||||
// https://gist.github.com/thomseddon/3511330
|
||||
if (!size) return '0 B'
|
||||
let units = ['B', 'KB', 'MB', 'GB', 'TB']
|
||||
let units = ['B', 'KiB', 'MiB', 'GiB', 'TiB']
|
||||
let number = Math.floor(Math.log(size) / Math.log(1024))
|
||||
return `${(size / Math.pow(1024, Math.floor(number))).toFixed(2)} ${units[number]}`
|
||||
}
|
||||
@@ -188,7 +189,7 @@ export const sortInsert = <T>(arr: Array<{ num: number, data: T }>, data: { num:
|
||||
}
|
||||
|
||||
export const encodePath = (path: string) => {
|
||||
return encodeURI(path.replaceAll('\\', '/'))
|
||||
return pathToFileURL(path).href
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import log from 'electron-log/node'
|
||||
import os from 'node:os'
|
||||
|
||||
|
||||
export const isLinux = process.platform == 'linux'
|
||||
@@ -13,7 +14,12 @@ export const getPlatform = (platform: NodeJS.Platform = process.platform) => {
|
||||
default: return 'linux'
|
||||
}
|
||||
}
|
||||
|
||||
export const getOSVersion = (): string => {
|
||||
const release = os.release()
|
||||
const versionMatch = /^(\d+)/.exec(release)
|
||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||
return versionMatch?.[1] || release
|
||||
}
|
||||
|
||||
// https://stackoverflow.com/a/53387532
|
||||
export function compareVer(currentVer: string, targetVer: string): -1 | 0 | 1 {
|
||||
|
||||
@@ -2,6 +2,7 @@ import { getNow, TimeoutTools } from './utils'
|
||||
|
||||
const timeFieldExp = /^(?:\[[\d:.]+\])+/g
|
||||
const timeExp = /\d{1,3}(:\d{1,3}){0,2}(?:\.\d{1,3})/g
|
||||
const msTimeRxp = /\[\d{1,3}(:\d{1,3}){0,2}\.\d{3}]/
|
||||
const tagRegMap = {
|
||||
title: 'ti',
|
||||
artist: 'ar',
|
||||
@@ -82,6 +83,7 @@ export default class LinePlayer {
|
||||
|
||||
_initLines() {
|
||||
this.lines = []
|
||||
const isMsTime = msTimeRxp.test(this.lyric)
|
||||
const lines = this.lyric.split(/\r\n|\r|\n/)
|
||||
const linesMap = {}
|
||||
for (let i = 0; i < lines.length; i++) {
|
||||
@@ -103,9 +105,10 @@ export default class LinePlayer {
|
||||
if (timeArr.length > 3) continue
|
||||
else if (timeArr.length < 3) for (let i = 3 - timeArr.length; i--;) timeArr.unshift('0')
|
||||
if (timeArr[2].indexOf('.') > -1) timeArr.splice(2, 1, ...timeArr[2].split('.'))
|
||||
const msTime = timeArr[3] || '0'
|
||||
|
||||
linesMap[timeStr] = {
|
||||
time: parseInt(timeArr[0]) * 60 * 60 * 1000 + parseInt(timeArr[1]) * 60 * 1000 + parseInt(timeArr[2]) * 1000 + parseInt(timeArr[3] || 0),
|
||||
time: parseInt(timeArr[0]) * 60 * 60 * 1000 + parseInt(timeArr[1]) * 60 * 1000 + parseInt(timeArr[2]) * 1000 + parseInt(isMsTime ? msTime : msTime.padEnd(3, '0')),
|
||||
text,
|
||||
extendedLyrics: [],
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ const parseLyric = str => {
|
||||
let lxlyric = str.replace(/\[((\d+),\d+)\].*/g, str => {
|
||||
let result = str.match(/\[((\d+),\d+)\].*/)
|
||||
let time = parseInt(result[2])
|
||||
let ms = time % 1000
|
||||
let ms = (time % 1000).toString().padStart(3, '0')
|
||||
time /= 1000
|
||||
let m = parseInt(time / 60).toString().padStart(2, '0')
|
||||
time %= 60
|
||||
|
||||
@@ -206,6 +206,7 @@ export const request = async <T = unknown>(url: string, options: Options = {}):
|
||||
body,
|
||||
signal: options.signal,
|
||||
dispatcher: buildRequestDispatcher(options),
|
||||
maxRedirections: options.maxRedirect ?? defaultOptions.maxRedirect,
|
||||
}).then(async(response) => {
|
||||
if (options.needBody) {
|
||||
return {
|
||||
|
||||
@@ -35,6 +35,7 @@ export const toNewMusicInfo = (oldMusicInfo: any): LX.Music.MusicInfo => {
|
||||
switch (oldMusicInfo.source) {
|
||||
case 'kg':
|
||||
meta.hash = oldMusicInfo.hash
|
||||
meta.albumAudioId = oldMusicInfo.albumAudioId
|
||||
newInfo.id = oldMusicInfo.songmid + '_' + oldMusicInfo.hash
|
||||
break
|
||||
case 'tx':
|
||||
@@ -79,6 +80,7 @@ export const toOldMusicInfo = (minfo: LX.Music.MusicInfo) => {
|
||||
switch (minfo.source) {
|
||||
case 'kg':
|
||||
oInfo.hash = minfo.meta.hash
|
||||
oInfo.albumAudioId = minfo.meta.albumAudioId
|
||||
break
|
||||
case 'tx':
|
||||
oInfo.strMediaMid = minfo.meta.strMediaMid
|
||||
@@ -148,3 +150,7 @@ export const clipFileNameLength = (name: string) => {
|
||||
return name.length > MAX_FILE_NAME_LENGTH ? name.substring(0, MAX_FILE_NAME_LENGTH) : name
|
||||
}
|
||||
|
||||
export const formatMusicName = (format: string, name: string, singer: string) => {
|
||||
// return format.replace(/歌名|歌手/g, match => match === '歌名' ? name : singer)
|
||||
return format.replace('歌手', singer).replace('歌名', name)
|
||||
}
|
||||
|
||||
@@ -613,7 +613,7 @@
|
||||
"songlist__import_input_tip_1": "Cross-service playlists are not supported. Please confirm whether the playlist to be opened corresponds to the current chosen service",
|
||||
"songlist__import_input_tip_2": "If you encounter a playlist link that cannot be opened. Please send us your feedback",
|
||||
"songlist__import_input_tip_3": "Unable to open Kugou playlist with playlist ID or link from lite edition, but support to open it with Kugou code or link from main edition",
|
||||
"songlist__import_input_tip_4": "NetEase Cloud Music's \"I Like\" playlist requires a token to open. For details, see ",
|
||||
"songlist__import_input_tip_4": "NetEase’s “Private Radar” playlists require a token to access. Tencent’s personal playlists require your profile be public to access. For details, see ",
|
||||
"songlist__import_input_title": "Open shared playlist",
|
||||
"songlist__open_list": "Open \"{name}\" playlist",
|
||||
"songlist__tag_info_hot_tag": "Top Tags",
|
||||
|
||||
@@ -1,14 +1,28 @@
|
||||
import zh_cn from './zh-cn.json'
|
||||
import zh_tw from './zh-tw.json'
|
||||
import en_us from './en-us.json'
|
||||
import ko_kr from './ko-kr.json'
|
||||
|
||||
type Message = Record<keyof typeof zh_cn, string>
|
||||
| Record<keyof typeof zh_tw, string>
|
||||
| Record<keyof typeof en_us, string>
|
||||
| Record<keyof typeof ko_kr, string>
|
||||
|
||||
type Messages = Record<(typeof langs)[number]['locale'], Message>
|
||||
|
||||
const langs = [
|
||||
{
|
||||
name: 'English',
|
||||
locale: 'en-us',
|
||||
country: 'us',
|
||||
message: en_us,
|
||||
},
|
||||
{
|
||||
name: '한국어',
|
||||
locale: 'ko-kr',
|
||||
country: 'kr',
|
||||
message: ko_kr,
|
||||
},
|
||||
{
|
||||
name: '简体中文',
|
||||
locale: 'zh-cn',
|
||||
@@ -24,12 +38,6 @@ const langs = [
|
||||
country: 'cn',
|
||||
message: zh_tw,
|
||||
},
|
||||
{
|
||||
name: 'English',
|
||||
locale: 'en-us',
|
||||
country: 'us',
|
||||
message: en_us,
|
||||
},
|
||||
] as const
|
||||
|
||||
const langList: Array<{
|
||||
|
||||
748
src/lang/ko-kr.json
Normal file
748
src/lang/ko-kr.json
Normal file
@@ -0,0 +1,748 @@
|
||||
{
|
||||
"action": "동작",
|
||||
"agree": "동의",
|
||||
"alert_button_text": "확인",
|
||||
"audio_visualization": "오디오 시각화 (실험적 기능)",
|
||||
"back": "뒤로",
|
||||
"btn_cancel": "취소",
|
||||
"btn_close": "닫기",
|
||||
"btn_confirm": "확인",
|
||||
"btn_save": "저장",
|
||||
"cancel_button_text": "취소",
|
||||
"cancel_button_text_2": "아니요, 잘못 눌렀어요",
|
||||
"close": "닫기",
|
||||
"comment__hot_load_error": "인기 댓글을 불러오지 못했습니다. 클릭하여 다시 시도하세요.",
|
||||
"comment__hot_loading": "인기 댓글을 불러오는 중...",
|
||||
"comment__hot_title": "인기 댓글",
|
||||
"comment__location": "{location}에서",
|
||||
"comment__new_load_error": "최신 댓글을 불러오지 못했습니다. 클릭하여 다시 시도하세요.",
|
||||
"comment__new_loading": "최신 댓글을 불러오는 중...",
|
||||
"comment__new_title": "최신 댓글",
|
||||
"comment__no_content": "아직 댓글이 없습니다",
|
||||
"comment__refresh": "댓글 새로고침",
|
||||
"comment__show": "노래 댓글",
|
||||
"comment__title": "\"{name}\"의 댓글",
|
||||
"comment__unavailable": "이 노래의 댓글을 가져올 수 없습니다.",
|
||||
"confirm_button_text": "예",
|
||||
"copy_tip": " (클릭하여 복사)",
|
||||
"date_format_hour": "{num}시간 전",
|
||||
"date_format_minute": "{num}분 전",
|
||||
"date_format_second": "{num}초 전",
|
||||
"deep_link__handle_error_tip": "호출 실패: {message}",
|
||||
"default": "기본값",
|
||||
"default_list": "기본 목록",
|
||||
"desktop_lyric__back": "뒤로",
|
||||
"desktop_lyric__close": "닫기",
|
||||
"desktop_lyric__font_decrease": "글자 크기 줄이기",
|
||||
"desktop_lyric__font_increase": "글자 크기 늘리기",
|
||||
"desktop_lyric__lock": "잠금",
|
||||
"desktop_lyric__lrc_active_zoom_off": "재생 중인 가사 확대 해제",
|
||||
"desktop_lyric__lrc_active_zoom_on": "재생 중인 가사 확대",
|
||||
"desktop_lyric__opacity_decrease": "투명도 높이기\n(우클릭하여 세밀 조정)",
|
||||
"desktop_lyric__opacity_increase": "투명도 낮추기\n(우클릭하여 세밀 조정)",
|
||||
"desktop_lyric__theme": "테마 색상",
|
||||
"desktop_lyric__unlock": "잠금 해제",
|
||||
"desktop_lyric__win_top_off": "항상 위 유지",
|
||||
"desktop_lyric__win_top_on": "항상 위 해제",
|
||||
"download": "다운로드",
|
||||
"download___status_completed": "다운로드 완료",
|
||||
"download___status_error": "오류",
|
||||
"download___status_paused": "일시정지됨",
|
||||
"download___status_running": "다운로드 중",
|
||||
"download___status_waiting": "다운로드 대기 중",
|
||||
"download__all": "전체 작업",
|
||||
"download__error": "오류",
|
||||
"download__finished": "완료",
|
||||
"download__high_quality": "고음질",
|
||||
"download__lossless": "무손실",
|
||||
"download__multiple_tip": "{len}곡 선택됨",
|
||||
"download__multiple_tip2": "원하는 다운로드 음질을 선택하세요",
|
||||
"download__normal": "일반",
|
||||
"download__not_available_tip": "해당 음질을 사용할 수 없습니다.",
|
||||
"download__paused": "일시정지됨",
|
||||
"download__progress": "진행률",
|
||||
"download__quality": "음질",
|
||||
"download__running": "다운로드 중",
|
||||
"download__status": "상태",
|
||||
"download_status_error_check_path": "다운로드 경로 확인 중 오류가 발생했습니다. 설정한 다운로드 폴더가 정상인지 확인해 주세요",
|
||||
"download_status_error_check_path_exist": "동일한 이름의 파일이 존재하여 다운로드를 건너뛰었습니다",
|
||||
"download_status_error_refresh_url": "링크가 만료되어 새로고침 중...",
|
||||
"download_status_error_response": "다운로드 실패: ",
|
||||
"download_status_error_url_failed": "노래 링크를 가져오지 못했습니다",
|
||||
"download_status_error_write": "다운로드 위치가 사용 중이거나 쓰기 권한이 없습니다. 다운로드 폴더를 변경하거나 앱/기기를 재시작해 보세요. 오류 상세: ",
|
||||
"download_status_start": "다운로드 시작",
|
||||
"download_status_url_getting": "노래 링크를 가져오는 중...",
|
||||
"download_status_write_queue": "데이터 쓰는 중 ({num})",
|
||||
"duplicate_list_tip": "이미 \"{name}\" 목록을 담은 적이 있습니다. 목록의 곡을 업데이트하시겠습니까?",
|
||||
"export": "내보내기",
|
||||
"fullscreen_exit": "전체화면 종료",
|
||||
"history_clear": "기록 지우기",
|
||||
"history_remove": "우클릭하여 이 항목 삭제",
|
||||
"history_search": "검색 기록",
|
||||
"import": "가져오기",
|
||||
"leaderboard": "차트",
|
||||
"list__add_to": "추가할 위치...",
|
||||
"list__collect": "담기",
|
||||
"list__copy_name": "이름 복사",
|
||||
"list__dislike": "싫어요",
|
||||
"list__download": "다운로드",
|
||||
"list__export_part_desc": "목록 파일을 저장할 위치를 선택하세요",
|
||||
"list__file": "파일 위치 열기",
|
||||
"list__import_part_button_cancel": "취소",
|
||||
"list__import_part_button_confirm": "덮어쓰기",
|
||||
"list__import_part_confirm": "가져온 목록({importName})의 ID가 로컬 목록({localName})과 동일합니다. 로컬 목록을 덮어쓰시겠습니까?",
|
||||
"list__import_part_desc": "목록 파일을 선택하세요",
|
||||
"list__load_failed": "이런, 불러오기에 실패했습니다 😭",
|
||||
"list__loading": "목록을 불러오는 중...⏳",
|
||||
"list__move_to": "이동할 위치...",
|
||||
"list__movedown": "아래로 이동",
|
||||
"list__moveup": "위로 이동",
|
||||
"list__name_default": "기본 목록",
|
||||
"list__name_love": "좋아요",
|
||||
"list__new_list_btn": "새 목록",
|
||||
"list__new_list_input": "새 목록...",
|
||||
"list__pause": "정지",
|
||||
"list__play": "재생",
|
||||
"list__play_later": "다음에 재생",
|
||||
"list__remove": "삭제",
|
||||
"list__remove_tip": "\"{name}\"을(를) 정말 삭제하시겠습니까?",
|
||||
"list__remove_tip_button": "예, 맞습니다",
|
||||
"list__rename": "이름 변경",
|
||||
"list__search": "검색",
|
||||
"list__sort": "순서 조정",
|
||||
"list__source_detail": "노래 상세정보",
|
||||
"list__start": "재개",
|
||||
"list__sync": "업데이트",
|
||||
"list__toggle_source": "소스 변경",
|
||||
"list_add__btn_title": "\"{name}\"에 곡 추가",
|
||||
"list_add__multiple_btn_title": "이 곡들을 \"{name}\"에 추가",
|
||||
"list_add__multiple_title_add": "선택한 {num}곡을 다음 위치에 추가...",
|
||||
"list_add__multiple_title_move": "선택한 {num}곡을 다음 위치로 이동...",
|
||||
"list_add__title_first_add": "추가",
|
||||
"list_add__title_first_move": "이동",
|
||||
"list_add__title_last": "위치로...",
|
||||
"list_duplicate_tip": "동일한 이름의 목록이 이미 존재합니다. 계속 생성하시겠습니까?",
|
||||
"list_import_tip__alldata": "가져오기에 실패했습니다. 이 파일은 \"전체 데이터\" 백업 파일입니다. 다음 위치에서 가져와야 합니다: \n\n설정 → 백업 및 복원 → 전체 데이터 → 가져오기",
|
||||
"list_import_tip__playlist": "가져오기에 실패했습니다. 이 파일은 \"목록\" 백업 파일입니다. 다음 위치에서 가져와야 합니다: \n\n설정 → 백업 및 복원 → 일부 데이터 → 목록 가져오기",
|
||||
"list_import_tip__playlist_part": "가져오기에 실패했습니다. 이 파일은 \"목록 전용\" 백업 파일입니다. 다음 위치에서 가져와야 합니다: \n\n내 서재 → 아무 목록 이름에서 우클릭 → 메뉴에서 '가져오기' 선택",
|
||||
"list_import_tip__setting": "가져오기에 실패했습니다. 이 파일은 \"설정\" 백업 파일입니다. 다음 위치에서 가져와야 합니다: \n\n설정 → 백업 및 복원 → 일부 데이터 → 설정 가져오기",
|
||||
"list_import_tip__unknown": "가져오기에 실패했습니다. 알 수 없는 파일 형식입니다. 앱을 최신 버전으로 업데이트한 후 다시 시도해 주세요.",
|
||||
"list_sort_modal_by_album": "앨범",
|
||||
"list_sort_modal_by_down": "내림차순",
|
||||
"list_sort_modal_by_field": "정렬 기준",
|
||||
"list_sort_modal_by_name": "제목",
|
||||
"list_sort_modal_by_random": "무작위",
|
||||
"list_sort_modal_by_singer": "아티스트",
|
||||
"list_sort_modal_by_source": "음악 서비스",
|
||||
"list_sort_modal_by_time": "길이",
|
||||
"list_sort_modal_by_type": "정렬 항목",
|
||||
"list_sort_modal_by_up": "오름차순",
|
||||
"list_sort_modal_tip_confirm": "정말로 실행하시겠습니까?",
|
||||
"list_update_modal__auto_update": "자동 업데이트",
|
||||
"list_update_modal__tips": "💡 \"자동 업데이트\"가 체크된 목록은 앱을 시작할 때마다 자동으로 업데이트됩니다.",
|
||||
"list_update_modal__title": "목록 업데이트 관리",
|
||||
"list_update_modal__update": "동기화",
|
||||
"lists__add_local_file_desc": "노래 파일을 선택하세요",
|
||||
"lists__dislike_music_singer_tip": "{singer}의 \"{name}\"을(를) 정말 싫어요 처리하시겠습니까?",
|
||||
"lists__dislike_music_tip": "\"{name}\"을(를) 정말 싫어요 처리하시겠습니까?",
|
||||
"lists__duplicate": "중복된 곡",
|
||||
"lists__export": "내보내기",
|
||||
"lists__export_part_desc": "목록 파일을 저장할 위치를 선택하세요",
|
||||
"lists__import": "가져오기",
|
||||
"lists__import_part_button_cancel": "아니요",
|
||||
"lists__import_part_button_confirm": "덮어쓰기",
|
||||
"lists__import_part_confirm": "가져온 목록({importName})의 ID가 로컬 목록({localName})과 동일합니다. 로컬 목록을 덮어쓰시겠습니까?",
|
||||
"lists__import_part_desc": "목록 파일을 선택하세요",
|
||||
"lists__new_list_btn": "목록 만들기",
|
||||
"lists__new_list_input": "새 목록...",
|
||||
"lists__remove": "삭제",
|
||||
"lists__remove_music_tip": "선택한 {len}곡을 정말 삭제하시겠습니까?",
|
||||
"lists__remove_tip": "\"{name}\"을(를) 정말 삭제하시겠습니까?",
|
||||
"lists__remove_tip_button": "예, 맞습니다",
|
||||
"lists__rename": "이름 변경",
|
||||
"lists__select_local_file": "로컬 곡 추가",
|
||||
"lists__sort_list": "곡 정렬",
|
||||
"lists__source_detail": "재생목록 페이지",
|
||||
"lists__sync": "업데이트",
|
||||
"lists__sync_confirm_tip": "\"{name}\"의 곡을 온라인 목록의 곡으로 교체합니다. 업데이트하시겠습니까?",
|
||||
"load_list_file_error_detail": "이전 목록 파일을 {path}에 백업해 두었습니다.\nJSON 형식으로 저장되어 있으며, 수동으로 복구를 시도할 수 있습니다.\n\n오류 상세: {detail}",
|
||||
"load_list_file_error_title": "재생목록 데이터 로드 오류",
|
||||
"loading": "불러오는 중...",
|
||||
"love_list": "즐겨찾기",
|
||||
"lyric__load_error": "가사를 가져오지 못했습니다",
|
||||
"lyric__select": "가사 텍스트 선택 허용",
|
||||
"lyric_menu__align": "가사 정렬",
|
||||
"lyric_menu__align_center": "가운데",
|
||||
"lyric_menu__align_left": "왼쪽",
|
||||
"lyric_menu__lrc_size": "글자 크기 [{size}]",
|
||||
"lyric_menu__offset": "오프셋 [{offset}ms]",
|
||||
"lyric_menu__offset_add_10": "10ms 늘리기",
|
||||
"lyric_menu__offset_add_100": "100ms 늘리기",
|
||||
"lyric_menu__offset_dec_10": "10ms 줄이기",
|
||||
"lyric_menu__offset_dec_100": "100ms 줄이기",
|
||||
"lyric_menu__offset_reset": "초기화",
|
||||
"lyric_menu__size_add": "글자 크기 늘리기\n(우클릭하여 세밀 조정)",
|
||||
"lyric_menu__size_dec": "글자 크기 줄이기\n(우클릭하여 세밀 조정)",
|
||||
"lyric_menu__size_reset": "초기화",
|
||||
"media_device__empty_device_tip": "오디오 출력 장치가 비어 있습니다. 재생이 되지 않는다면 사운드 카드 드라이버가 설치되어 있는지 확인해 주세요. \n또는 소프트웨어를 제거한 후 재설치할 때 \"나만 사용\"을 선택하고 기본 설치 경로를 유지해 보세요.",
|
||||
"min": "최소화",
|
||||
"music_album": "앨범",
|
||||
"music_duplicate": "중복된 곡",
|
||||
"music_name": "제목",
|
||||
"music_singer": "아티스트",
|
||||
"music_sort__input_tip": "이동할 위치를 입력하세요",
|
||||
"music_sort__title": "\"{name}\"의 위치를 다음으로 조정: ",
|
||||
"music_sort__title_multiple": "선택한 {num}곡의 위치를 다음으로 조정: ",
|
||||
"music_time": "길이",
|
||||
"music_toggle_clean": "변경 취소",
|
||||
"music_toggle_confirm": "확인",
|
||||
"music_toggle_duplicate_tip": "목록에 동일한 곡이 이미 존재합니다. 삭제하고 계속할까요?",
|
||||
"my_list": "내 서재",
|
||||
"no_item": "아무것도 없습니다...",
|
||||
"not_agree": "거부",
|
||||
"ok": "확인",
|
||||
"pagination__next": "다음 페이지",
|
||||
"pagination__page": "{num} 페이지",
|
||||
"pagination__prev": "이전 페이지",
|
||||
"play_timeout": "타이머 정지",
|
||||
"play_timeout_close": "닫기",
|
||||
"play_timeout_confirm": "확인",
|
||||
"play_timeout_end": "곡이 끝난 후 정지",
|
||||
"play_timeout_stop": "타이머 취소",
|
||||
"play_timeout_tip": "{time} 후 정지",
|
||||
"play_timeout_unit": "분",
|
||||
"play_timeout_update": "시간 업데이트",
|
||||
"player__add_music_to": "현재 곡을 다음 위치에 추가...",
|
||||
"player__buffering": "버퍼링 중...",
|
||||
"player__desktop_lyric_lock": "우클릭하여 가사창 잠금",
|
||||
"player__desktop_lyric_off": "가사창 숨기기",
|
||||
"player__desktop_lyric_on": "가사창 표시",
|
||||
"player__desktop_lyric_unlock": "우클릭하여 가사창 잠금 해제",
|
||||
"player__end": "정지됨",
|
||||
"player__error": "음악을 불러오는 중 오류가 발생했습니다. 5초 후 다음 곡으로 전환합니다",
|
||||
"player__getting_url": "음악 링크를 가져오는 중...",
|
||||
"player__getting_url_delay_retry": "서버가 혼잡합니다. {time}초 후 다시 시도합니다...",
|
||||
"player__hide_detail_tip": "상세 페이지 숨기기\n(앱 창에서 우클릭하면 상세 페이지를 빠르게 숨길 수 있습니다)",
|
||||
"player__loading": "음악을 불러오는 중...",
|
||||
"player__music_album": "앨범: ",
|
||||
"player__music_name": "제목: ",
|
||||
"player__music_singer": "아티스트: ",
|
||||
"player__next": "다음 곡",
|
||||
"player__pause": "일시정지",
|
||||
"player__pic_tip": "재생 상세 페이지\n(우클릭하면 \"내 서재\"에서 현재 재생 중인 곡을 찾을 수 있습니다)",
|
||||
"player__play": "재생",
|
||||
"player__play_toggle_mode_list": "순서대로",
|
||||
"player__play_toggle_mode_list_loop": "목록 반복",
|
||||
"player__play_toggle_mode_off": "사용 안 함",
|
||||
"player__play_toggle_mode_random": "무작위 재생",
|
||||
"player__play_toggle_mode_single_loop": "한 곡 반복",
|
||||
"player__playback_preserves_pitch": "음정 보정",
|
||||
"player__playback_rate": "현재 재생 속도: ",
|
||||
"player__playback_rate_reset_btn": "초기화",
|
||||
"player__playing": "재생 중...",
|
||||
"player__prev": "이전 곡",
|
||||
"player__refresh_url": "음악 URL이 만료되어 새로고침 중...",
|
||||
"player__sound_effect": "음향 옵션 (실험적 기능)",
|
||||
"player__sound_effect_biquad_filter": "이퀄라이저",
|
||||
"player__sound_effect_biquad_filter_preset_classical": "클래식",
|
||||
"player__sound_effect_biquad_filter_preset_dance": "댄스",
|
||||
"player__sound_effect_biquad_filter_preset_electronic": "일렉트로닉",
|
||||
"player__sound_effect_biquad_filter_preset_pop": "팝",
|
||||
"player__sound_effect_biquad_filter_preset_rock": "록",
|
||||
"player__sound_effect_biquad_filter_preset_slow": "슬로우",
|
||||
"player__sound_effect_biquad_filter_preset_soft": "소프트",
|
||||
"player__sound_effect_biquad_filter_preset_subwoofer": "서브우퍼",
|
||||
"player__sound_effect_biquad_filter_preset_vocal": "보컬",
|
||||
"player__sound_effect_biquad_filter_reset_btn": "초기화",
|
||||
"player__sound_effect_biquad_filter_save_btn": "프리셋 다른 이름으로 저장",
|
||||
"player__sound_effect_biquad_filter_save_input": "새 프리셋...",
|
||||
"player__sound_effect_convolution": "환경 리버브 음향 효과",
|
||||
"player__sound_effect_convolution_file_bright_hall": "홀",
|
||||
"player__sound_effect_convolution_file_cardiod_35_10_spread": "하트형 확산",
|
||||
"player__sound_effect_convolution_file_cinema_diningroom": "영화관",
|
||||
"player__sound_effect_convolution_file_dining_living_true_stereo": "식당",
|
||||
"player__sound_effect_convolution_file_feedback_spring": "피드백 스프링",
|
||||
"player__sound_effect_convolution_file_living_bedroom_leveled": "욕실",
|
||||
"player__sound_effect_convolution_file_matrix_1": "매트릭스 (1)",
|
||||
"player__sound_effect_convolution_file_matrix_2": "매트릭스 (2)",
|
||||
"player__sound_effect_convolution_file_s2_r4_bd": "교회",
|
||||
"player__sound_effect_convolution_file_s3_r1_bd": "스테레오",
|
||||
"player__sound_effect_convolution_file_spreader50_65ms": "실내",
|
||||
"player__sound_effect_convolution_file_telephone": "전화기",
|
||||
"player__sound_effect_convolution_file_tim_omni_35_10_magnetic": "마그네틱 스테레오",
|
||||
"player__sound_effect_convolution_main_gain": "원음 게인",
|
||||
"player__sound_effect_convolution_send_gain": "환경 음향 효과 게인",
|
||||
"player__sound_effect_features_tip": "안내: 음향 옵션은 사용자 지정 오디오 출력 장치와 충돌합니다. 음향 옵션을 활성화하면 오디오 출력 장치가 기본 출력 장치로 재설정됩니다. 현재로서는 이 문제를 해결할 수 없습니다.",
|
||||
"player__sound_effect_panner": "3D 입체 서라운드 (헤드폰 사용 필요)",
|
||||
"player__sound_effect_panner_enabled": "사용",
|
||||
"player__sound_effect_panner_sound_r": "음원 거리",
|
||||
"player__sound_effect_panner_sound_speed": "서라운드 속도",
|
||||
"player__sound_effect_pitch_shifter": "음정 조정",
|
||||
"player__sound_effect_pitch_shifter_preset_semitones": "{num}반음",
|
||||
"player__sound_effect_pitch_shifter_reset_btn": "초기화",
|
||||
"player__sound_effect_pitch_shifter_tip": "음정을 높이거나 낮추려면 오디오 데이터를 실시간으로 처리해야 하므로 CPU 사용량이 추가로 발생합니다.\n\n알려진 문제:\nCPU 자원이 부족하면 처리 작업이 쌓여 소리에 이상이 발생할 수 있습니다.\n이 경우 재생을 잠시 멈추고 쌓인 작업이 처리될 때까지 기다린 후 재생해야 합니다.",
|
||||
"player__stop": "일시정지됨",
|
||||
"player__volume": "볼륨: ",
|
||||
"player__volume_mute_label": "음소거",
|
||||
"player__volume_muted": "음소거됨",
|
||||
"search": "검색",
|
||||
"search__hot_search": "인기 검색어",
|
||||
"search__type_music": "노래",
|
||||
"search__type_songlist": "재생목록",
|
||||
"search__welcome": "원하는 것을 검색해보세요~~ 😉",
|
||||
"setting": "설정",
|
||||
"setting__about": "LX Music 정보",
|
||||
"setting__backup": "백업 및 복원",
|
||||
"setting__backup_all": "전체 데이터 (\"목록\" 데이터와 \"설정\" 데이터)",
|
||||
"setting__backup_all_export": "내보내기",
|
||||
"setting__backup_all_export_desc": "백업을 저장할 위치...",
|
||||
"setting__backup_all_import": "가져오기",
|
||||
"setting__backup_all_import_desc": "백업 파일을 선택하세요",
|
||||
"setting__backup_other": "기타 백업 형식 (해당 백업 파일의 복원은 현재 지원하지 않습니다)",
|
||||
"setting__backup_other_export_dir": "파일을 저장할 위치를 선택하세요",
|
||||
"setting__backup_other_export_list_csv": "CSV 형식으로 목록 내보내기",
|
||||
"setting__backup_other_export_list_text": "TXT 형식으로 목록 내보내기",
|
||||
"setting__backup_other_export_list_text_confirm": "모든 목록을 하나의 파일로 합치시겠습니까?",
|
||||
"setting__backup_part": "일부 데이터 (\"목록\" 데이터에는 \"기본\", \"좋아요\" 및 사용자가 만든 목록이 포함됩니다. \"설정\" 데이터에는 \"단축키\" 설정이 포함되지 않습니다)",
|
||||
"setting__backup_part_export_list": "목록 내보내기",
|
||||
"setting__backup_part_export_list_desc": "목록을 저장할 위치...",
|
||||
"setting__backup_part_export_setting": "설정 내보내기",
|
||||
"setting__backup_part_export_setting_desc": "설정을 저장할 위치...",
|
||||
"setting__backup_part_import_list": "목록 가져오기",
|
||||
"setting__backup_part_import_list_confirm": "백업 파일의 목록이 기존 목록과 동일한 ID를 가지고 있으면 기존 목록의 곡이 덮어써집니다. 계속하시겠습니까?",
|
||||
"setting__backup_part_import_list_desc": "목록 백업 파일을 선택하세요",
|
||||
"setting__backup_part_import_setting": "설정 가져오기",
|
||||
"setting__backup_part_import_setting_desc": "설정 백업 파일을 선택하세요",
|
||||
"setting__basic": "일반",
|
||||
"setting__basic_animation": "팝업 애니메이션 무작위 적용",
|
||||
"setting__basic_control_btn_position": "컨트롤 버튼 위치",
|
||||
"setting__basic_control_btn_position_left": "왼쪽",
|
||||
"setting__basic_control_btn_position_right": "오른쪽",
|
||||
"setting__basic_font": "글꼴",
|
||||
"setting__basic_font_size": "글자 크기",
|
||||
"setting__basic_font_size_14px": "더 작게",
|
||||
"setting__basic_font_size_15px": "작게",
|
||||
"setting__basic_font_size_16px": "표준",
|
||||
"setting__basic_font_size_17px": "크게",
|
||||
"setting__basic_font_size_18px": "더 크게",
|
||||
"setting__basic_font_size_19px": "매우 크게",
|
||||
"setting__basic_lang": "언어",
|
||||
"setting__basic_lang_title": "앱에 표시되는 언어",
|
||||
"setting__basic_playbar_progress_style": "재생바 진행바 스타일",
|
||||
"setting__basic_playbar_progress_style_full": "전체 너비",
|
||||
"setting__basic_playbar_progress_style_middle": "중간",
|
||||
"setting__basic_playbar_progress_style_mini": "미니",
|
||||
"setting__basic_show_animation": "애니메이션 표시",
|
||||
"setting__basic_source": "음악 API",
|
||||
"setting__basic_source_status_failed": "초기화 실패",
|
||||
"setting__basic_source_status_initing": "초기화 중...",
|
||||
"setting__basic_source_status_success": "초기화 성공",
|
||||
"setting__basic_source_temp": "임시 API (일부 기능 사용 불가. 테스트 API를 사용할 수 없을 때의 대안)",
|
||||
"setting__basic_source_test": "테스트 API (대부분의 앱 기능 사용 가능)",
|
||||
"setting__basic_source_user_api_btn": "음악 API 관리",
|
||||
"setting__basic_sourcename": "음악 스트리밍 서비스 이름",
|
||||
"setting__basic_sourcename_alias": "별칭",
|
||||
"setting__basic_sourcename_real": "원래 이름",
|
||||
"setting__basic_sourcename_title": "음악 스트리밍 서비스 이름 표시 방식을 선택하세요",
|
||||
"setting__basic_start_in_fullscreen": "전체화면 모드로 시작",
|
||||
"setting__basic_theme": "테마",
|
||||
"setting__basic_theme_auto_tip": "이것은 동적 테마입니다. 라이트 테마와 다크 테마를 미리 설정해 두면 시스템의 라이트/다크 모드에 따라 자동으로 해당 테마로 전환됩니다.\n\n참고: 이 테마 항목을 우클릭하면 라이트/다크 테마 설정 창이 열립니다.",
|
||||
"setting__basic_to_tray": "앱 창을 닫을 때 시스템 트레이로 최소화",
|
||||
"setting__basic_window_size": "창 크기",
|
||||
"setting__basic_window_size_big": "크게",
|
||||
"setting__basic_window_size_huge": "아주 크게",
|
||||
"setting__basic_window_size_larger": "더 크게",
|
||||
"setting__basic_window_size_medium": "중간",
|
||||
"setting__basic_window_size_oversized": "매우 크게",
|
||||
"setting__basic_window_size_small": "작게",
|
||||
"setting__basic_window_size_smaller": "더 작게",
|
||||
"setting__basic_window_size_title": "창 크기를 설정하세요",
|
||||
"setting__click_copy": "클릭하여 복사",
|
||||
"setting__click_open": "클릭하여 열기",
|
||||
"setting__desktop_lyric": "데스크톱 가사",
|
||||
"setting__desktop_lyric_align": "가사 정렬",
|
||||
"setting__desktop_lyric_align_center": "가운데",
|
||||
"setting__desktop_lyric_align_left": "왼쪽",
|
||||
"setting__desktop_lyric_align_right": "오른쪽",
|
||||
"setting__desktop_lyric_always_on_top": "항상 위 유지",
|
||||
"setting__desktop_lyric_always_on_top_loop": "\"항상 위 유지\"가 활성화된 경우 가사창을 반복적으로 새로고침",
|
||||
"setting__desktop_lyric_always_on_top_loop_tip": "다른 프로그램에 가사창이 계속 가려질 경우 이 옵션을 활성화해 보세요.",
|
||||
"setting__desktop_lyric_audio_visualization": "오디오 시각화 활성화 (실험적 기능)",
|
||||
"setting__desktop_lyric_color": "가사 글자 색상",
|
||||
"setting__desktop_lyric_color_reset": "색상 초기화",
|
||||
"setting__desktop_lyric_delay_scroll": "가사 스크롤 지연",
|
||||
"setting__desktop_lyric_direction": "가사 표시 방향",
|
||||
"setting__desktop_lyric_direction_horizontal": "가로",
|
||||
"setting__desktop_lyric_direction_vertical": "세로",
|
||||
"setting__desktop_lyric_ellipsis": "가사 줄바꿈 안 함",
|
||||
"setting__desktop_lyric_enable": "가사창 표시",
|
||||
"setting__desktop_lyric_font": "가사 글꼴",
|
||||
"setting__desktop_lyric_font_default": "기본값",
|
||||
"setting__desktop_lyric_font_weight": "굵은 글꼴",
|
||||
"setting__desktop_lyric_font_weight_extended": "번역 및 로마자 가사",
|
||||
"setting__desktop_lyric_font_weight_font": "글자 단위 가사",
|
||||
"setting__desktop_lyric_font_weight_line": "줄 단위 가사",
|
||||
"setting__desktop_lyric_fullscreen_hide": "전체화면일 때 가사창 숨기기",
|
||||
"setting__desktop_lyric_hover_hide": "마우스가 가사창 위로 이동하면 가사창 투명도 높이기",
|
||||
"setting__desktop_lyric_hover_hide_tip": "이 기능은 플랫폼 호환성 문제가 있을 수 있습니다.",
|
||||
"setting__desktop_lyric_line_gap": "가사 간격 ({num})",
|
||||
"setting__desktop_lyric_line_gap_add": "간격 늘리기",
|
||||
"setting__desktop_lyric_line_gap_dec": "간격 줄이기",
|
||||
"setting__desktop_lyric_lock": "가사창 잠금",
|
||||
"setting__desktop_lyric_lock_screen": "가사창을 메인 화면 밖으로 드래그하지 못하도록 제한",
|
||||
"setting__desktop_lyric_pause_hide": "음악을 일시정지하면 가사창 투명도 높이기",
|
||||
"setting__desktop_lyric_played_color": "재생된 부분",
|
||||
"setting__desktop_lyric_reset": "초기화",
|
||||
"setting__desktop_lyric_reset_window": "데스크톱 가사 옵션 초기화",
|
||||
"setting__desktop_lyric_scroll_align": "재생 중 가사 스크롤 위치",
|
||||
"setting__desktop_lyric_scroll_align_center": "가운데",
|
||||
"setting__desktop_lyric_scroll_align_top": "위쪽",
|
||||
"setting__desktop_lyric_shadow_color": "그림자",
|
||||
"setting__desktop_lyric_show_taskbar": "작업 표시줄에 가사창 프로세스 표시",
|
||||
"setting__desktop_lyric_show_taskbar_tip": "화면 녹화 프로그램이 가사창을 캡처하지 못할 때 대안으로 사용하는 옵션입니다.",
|
||||
"setting__desktop_lyric_unplay_color": "재생 안 된 부분",
|
||||
"setting__dislike_list_input_tip": "곡명@아티스트명\n곡명\n@아티스트명",
|
||||
"setting__dislike_list_save_btn": "저장",
|
||||
"setting__dislike_list_tips": "1. 한 줄에 하나의 항목을 입력합니다. 곡명이나 아티스트명에 \"@\" 기호가 있으면 \"#\"로 대체해야 합니다\n2. 특정 아티스트의 곡 지정: 곡명@아티스트명\n3. 곡 지정: 곡명\n4. 아티스트 지정: @아티스트명",
|
||||
"setting__dislike_list_title": "싫어요 곡 규칙 목록",
|
||||
"setting__download": "다운로드",
|
||||
"setting__download_data_embed": "다음 항목을 오디오 파일에 삽입",
|
||||
"setting__download_embed_lxlyric": "LX Music 가사도 함께 삽입 (있는 경우, LX Music으로 재생 시 글자 단위 가사를 지원합니다)",
|
||||
"setting__download_embed_lyric": "가사 삽입",
|
||||
"setting__download_embed_pic": "커버 이미지 삽입",
|
||||
"setting__download_embed_rlyric": "가능한 경우 로마자 가사도 함께 삽입",
|
||||
"setting__download_embed_tlyric": "가능한 경우 번역 가사도 함께 삽입",
|
||||
"setting__download_enable": "다운로드 활성화",
|
||||
"setting__download_lxlyric": "LX Music 가사도 가사 파일에 함께 기록 (있는 경우, LX Music으로 재생 시 글자 단위 가사를 지원합니다)",
|
||||
"setting__download_lyric": "가사 다운로드",
|
||||
"setting__download_lyric_format": "다운로드한 가사 파일의 인코딩 형식",
|
||||
"setting__download_lyric_format_gbk": "GBK",
|
||||
"setting__download_lyric_format_tip": "일부 기기에서 중국어가 깨져 보인다면 GBK 형식을 선택해 보세요.",
|
||||
"setting__download_lyric_format_utf8": "UTF-8",
|
||||
"setting__download_lyric_title": "가사 파일 다운로드 여부를 선택하세요",
|
||||
"setting__download_max_num": "동시 다운로드 개수",
|
||||
"setting__download_max_num_tip": "동시 다운로드 개수가 너무 많으면 음악 API에서 IP가 차단될 수 있습니다. 변경하시겠습니까?",
|
||||
"setting__download_max_num_tooltip": "값을 너무 높게 설정하면 음악 API에 따라 IP가 차단될 수 있습니다.",
|
||||
"setting__download_name": "음악 파일 이름 규칙",
|
||||
"setting__download_name1": "\"제목 - 아티스트\"",
|
||||
"setting__download_name2": "\"아티스트 - 제목\"",
|
||||
"setting__download_name3": "제목만",
|
||||
"setting__download_name_title": "다운로드 시 음악 파일 이름 형식을 선택하세요",
|
||||
"setting__download_path": "다운로드 경로",
|
||||
"setting__download_path_change_btn": "변경",
|
||||
"setting__download_path_label": "현재: ",
|
||||
"setting__download_path_open_label": "클릭하여 이 경로 열기",
|
||||
"setting__download_path_title": "다운로드 경로를 선택하세요",
|
||||
"setting__download_rlyric": "가능한 경우 로마자 가사도 가사 파일에 함께 기록",
|
||||
"setting__download_select_save_path": "저장 경로를 선택하세요",
|
||||
"setting__download_skip_exist_file": "다운로드 폴더에 동일한 이름의 파일이 있으면 다운로드 작업 건너뛰기",
|
||||
"setting__download_tlyric": "가능한 경우 번역 가사도 가사 파일에 함께 기록",
|
||||
"setting__download_use_other_source": "다운로드 시 자동 소스 전환",
|
||||
"setting__download_use_other_source_tip": "원래 소스에서 곡을 다운로드할 수 없을 때 다른 소스로 전환하여 다운로드를 시도합니다.\n참고: 소스를 변경한 후의 곡 버전이 원래 버전과 100% 일치한다고 보장하지는 않습니다.",
|
||||
"setting__hot_key": "단축키",
|
||||
"setting__hot_key_common_focus_search_input": "검색창 포커스",
|
||||
"setting__hot_key_common_min": "앱 최소화",
|
||||
"setting__hot_key_common_toggle_close": "앱 종료",
|
||||
"setting__hot_key_common_toggle_hide": "앱 표시/숨기기",
|
||||
"setting__hot_key_common_toggle_min": "앱 최소화/복원",
|
||||
"setting__hot_key_desktop_lyric_toggle_always_top": "데스크톱 가사 항상 위/해제",
|
||||
"setting__hot_key_desktop_lyric_toggle_lock": "데스크톱 가사 잠금/잠금 해제",
|
||||
"setting__hot_key_desktop_lyric_toggle_visible": "데스크톱 가사 표시/숨기기",
|
||||
"setting__hot_key_global_title": "전역 단축키",
|
||||
"setting__hot_key_local_title": "앱 내 단축키",
|
||||
"setting__hot_key_player_music_dislike": "곡 싫어요",
|
||||
"setting__hot_key_player_music_love": "곡 좋아요",
|
||||
"setting__hot_key_player_music_unlove": "곡 좋아요 취소",
|
||||
"setting__hot_key_player_next": "다음 곡",
|
||||
"setting__hot_key_player_prev": "이전 곡",
|
||||
"setting__hot_key_player_seekbackward": "5초 되감기",
|
||||
"setting__hot_key_player_seekforward": "5초 빨리감기",
|
||||
"setting__hot_key_player_toggle_play": "재생/일시정지",
|
||||
"setting__hot_key_player_volume_down": "볼륨 낮추기",
|
||||
"setting__hot_key_player_volume_mute": "음소거 전환",
|
||||
"setting__hot_key_player_volume_up": "볼륨 높이기",
|
||||
"setting__hot_key_tip_input": "새 키를 입력하세요",
|
||||
"setting__hot_key_unset_input": "설정 안 됨",
|
||||
"setting__is_enable": "사용",
|
||||
"setting__is_show": "표시",
|
||||
"setting__list": "목록",
|
||||
"setting__list_action_btn": "목록 작업 버튼 표시",
|
||||
"setting__list_add_music_location_type": "목록에 곡 추가 시 위치",
|
||||
"setting__list_add_music_location_type_bottom": "맨 아래",
|
||||
"setting__list_add_music_location_type_top": "맨 위",
|
||||
"setting__list_click_action": "목록에서 곡을 더블클릭하면 자동으로 현재 목록으로 전환 (\"재생목록\" 및 \"차트\" 페이지에서만 적용)",
|
||||
"setting__list_scroll": "재생목록 스크롤 위치 기억 (\"내 서재\" 페이지에서만 적용)",
|
||||
"setting__list_source": "곡이 어느 음악 스트리밍 서비스에서 왔는지 표시 (\"내 서재\" 페이지에서만 적용)",
|
||||
"setting__network": "네트워크",
|
||||
"setting__network_proxy_host": "호스트",
|
||||
"setting__network_proxy_password": "비밀번호",
|
||||
"setting__network_proxy_port": "포트",
|
||||
"setting__network_proxy_title": "HTTP 프록시 (설정이 잘못되면 앱이 네트워크에 연결되지 않습니다)",
|
||||
"setting__network_proxy_username": "사용자 이름",
|
||||
"setting__odc": "자동 비우기",
|
||||
"setting__odc_clear_search_input": "검색하지 않을 때 검색창 비우기",
|
||||
"setting__odc_clear_search_list": "검색하지 않을 때 검색 목록 비우기",
|
||||
"setting__open_api": "오픈 API",
|
||||
"setting__open_api_address": "서비스 주소: ",
|
||||
"setting__open_api_bind_lan": "LAN에서 접속 허용",
|
||||
"setting__open_api_enable": "오픈 API 서비스 활성화",
|
||||
"setting__open_api_port": "서비스 포트",
|
||||
"setting__open_api_port_tip": "오픈 API 서비스 포트를 입력하세요",
|
||||
"setting__open_api_tip": "이 기능은 타사 프로그램이 LX Music을 호출할 수 있도록 제공합니다. 현재 사용 가능한 기능을 확인하세요: ",
|
||||
"setting__open_api_tip_link": "문서 보기",
|
||||
"setting__other": "기타",
|
||||
"setting__other_dislike_list": "싫어요 곡 규칙",
|
||||
"setting__other_dislike_list_label": "규칙 개수: ",
|
||||
"setting__other_dislike_list_show_btn": "규칙 편집",
|
||||
"setting__other_listdata": "목록 데이터 정리",
|
||||
"setting__other_listdata_clear_btn": "\"내 서재\" 데이터 지우기",
|
||||
"setting__other_listdata_clear_tip_confirm": "생성한 모든 목록과 좋아요한 모든 곡이 지워집니다. 정말 계속하시겠습니까?",
|
||||
"setting__other_lyric_edited_cache": "오프셋 조정된 가사 관리",
|
||||
"setting__other_lyric_edited_clear_btn": "시간 조정된 가사 지우기",
|
||||
"setting__other_lyric_edited_clear_tip_confirm": "이전에 오프셋을 조정한 모든 가사가 지워집니다. 지우시겠습니까? \n(손 떨림으로 확인 🤪)",
|
||||
"setting__other_lyric_edited_label": "가사 개수: ",
|
||||
"setting__other_lyric_raw_clear_btn": "가사 캐시 지우기",
|
||||
"setting__other_lyric_raw_label": "가사 개수: ",
|
||||
"setting__other_music_url_clear_btn": "곡 URL 캐시 지우기",
|
||||
"setting__other_music_url_label": "곡 URL 개수: ",
|
||||
"setting__other_other_cache": "기타 캐시 관리",
|
||||
"setting__other_other_source_clear_btn": "소스 변경된 곡 캐시 지우기",
|
||||
"setting__other_other_source_label": "소스가 변경된 곡 정보 개수: ",
|
||||
"setting__other_resource_cache": "리소스 캐시 관리",
|
||||
"setting__other_resource_cache_clear_btn": "리소스 캐시 지우기",
|
||||
"setting__other_resource_cache_confirm": "지우겠습니다",
|
||||
"setting__other_resource_cache_label": "앱이 사용 중인 캐시 크기: ",
|
||||
"setting__other_resource_cache_tip": "이미지, 오디오 등의 캐시를 포함합니다. 정리 후에는 해당 리소스를 다시 다운로드해야 합니다. 정리하지 않는 것을 권장하며, 앱이 디스크 공간에 따라 캐시 크기를 동적으로 관리합니다.",
|
||||
"setting__other_resource_cache_tip_confirm": "이미지, 오디오 등의 캐시를 포함하며, 정리 후에는 해당 리소스를 다시 다운로드해야 합니다. 정리하지 않는 것을 권장하며, 앱이 디스크 공간에 따라 캐시 크기를 동적으로 관리합니다. 그래도 정리하시겠습니까?",
|
||||
"setting__other_transparent_window": "메인 창에 내장된 둥근 모서리와 그림자 사용",
|
||||
"setting__other_transparent_window_tip": "이 옵션을 끄면 시스템 기본 창 스타일을 사용합니다. 변경 사항을 적용하려면 소프트웨어를 재시작해야 합니다.",
|
||||
"setting__other_tray_theme": "트레이 아이콘 스타일",
|
||||
"setting__other_tray_theme_auto": "시스템 따르기",
|
||||
"setting__other_tray_theme_black": "검정",
|
||||
"setting__other_tray_theme_native": "흰색",
|
||||
"setting__other_tray_theme_origin": "기본값",
|
||||
"setting__play": "재생",
|
||||
"setting__play_advanced_audio_features_tip": "사용자 지정 오디오 출력 장치는 이 기능과 충돌합니다. 이 기능을 활성화하면 오디오 출력 장치가 기본 출력 장치로 재설정됩니다. 현재로서는 이 문제를 해결할 수 없습니다. 그래도 활성화하시겠습니까?",
|
||||
"setting__play_auto_clean_played_list": "현재 재생목록과 동일한 목록을 재생할 때 재생 완료 목록 비우기",
|
||||
"setting__play_auto_clean_played_list_tip": "무작위 재생 모드에서 목록의 모든 곡이 다시 무작위 대상에 포함됩니다.",
|
||||
"setting__play_auto_skip_on_error": "재생 오류 발생 시 자동으로 곡 전환",
|
||||
"setting__play_detail": "재생 상세 페이지",
|
||||
"setting__play_detail_align": "가사 정렬",
|
||||
"setting__play_detail_align_center": "가운데",
|
||||
"setting__play_detail_align_left": "왼쪽",
|
||||
"setting__play_detail_align_right": "오른쪽",
|
||||
"setting__play_detail_font_size": "가사 글자 크기 (재생 상세 페이지에서 키보드 \"+\"와 \"-\"로 글자 크기를 조정할 수 있습니다)",
|
||||
"setting__play_detail_font_size_current": "현재 글자 크기: {size}",
|
||||
"setting__play_detail_font_size_reset": "초기화",
|
||||
"setting__play_detail_font_zoom": "재생 중인 가사 확대",
|
||||
"setting__play_detail_lyric_delay_scroll": "가사 스크롤 지연",
|
||||
"setting__play_detail_lyric_progress": "가사를 드래그하여 재생 진행 위치 조정 허용",
|
||||
"setting__play_lyric_lxlrc": "가능한 경우 노래방 스타일 가사로 재생",
|
||||
"setting__play_lyric_lxlrc_tip": "이 기능은 높은 성능을 요구하므로 저사양 기기에서는 사용을 권장하지 않습니다!",
|
||||
"setting__play_lyric_roma": "가능한 경우 로마자 가사 표시",
|
||||
"setting__play_lyric_s2t": "재생 및 다운로드 중인 중국어 가사를 번체자로 변환",
|
||||
"setting__play_lyric_transition": "가능한 경우 번역 가사 표시",
|
||||
"setting__play_max_output_channel_count": "기기가 지원하는 최대 채널 수로 오디오 출력",
|
||||
"setting__play_mediaDevice": "오디오 출력",
|
||||
"setting__play_mediaDevice_remove_stop_play": "현재 오디오 출력 장치가 변경되면 재생 일시정지",
|
||||
"setting__play_mediaDevice_title": "오디오 출력에 사용할 미디어 장치를 선택하세요",
|
||||
"setting__play_media_device_error_tip": "이 기능은 고급 오디오 기능(오디오 시각화, 음향 옵션, 기기 최대 채널 수 오디오 출력)과 충돌합니다. 이번 앱 실행 시 해당 기능이 활성화되어 있어 이 옵션을 일시적으로 사용할 수 없습니다. 해당 기능을 끄고 앱을 재시작한 후 다시 변경해 주세요.",
|
||||
"setting__play_media_device_tip": "이 기능은 오디오 시각화 기능과 충돌하여 동시에 사용할 수 없습니다. 오디오 시각화를 끄고 선택한 오디오 출력 옵션을 적용하시겠습니까?",
|
||||
"setting__play_playQuality": "가능한 경우 재생 시 음질 우선",
|
||||
"setting__play_power_save_blocker": "곡 재생 중 기기 절전 모드 방지",
|
||||
"setting__play_save_play_time": "재생 진행 위치 기억",
|
||||
"setting__play_startup_auto_play": "시작 시 자동으로 음악 재생",
|
||||
"setting__play_statusbar_lyric": "상태 메뉴에 가사 표시",
|
||||
"setting__play_statusbar_lyric_tip": "설정 → 일반에서 \"앱 창을 닫을 때 시스템 트레이로 최소화\"를 활성화해야 합니다",
|
||||
"setting__play_task_bar": "작업 표시줄에 재생 진행률 표시",
|
||||
"setting__play_timeout": "타이머 정지",
|
||||
"setting__player_audio_visualization_tip": "사용자 지정 오디오 출력 장치 기능은 오디오 시각화 기능과 충돌합니다. 오디오 시각화를 활성화하면 오디오 출력 장치가 기본값으로 재설정됩니다. 현재로서는 이 문제를 해결할 수 없습니다. 그래도 활성화하시겠습니까?",
|
||||
"setting__player_swap_lyric_trans_roma": "번역 가사와 로마자 가사의 위치 바꾸기",
|
||||
"setting__search": "검색",
|
||||
"setting__search_focus_search_box": "시작 시 검색창 자동 포커스",
|
||||
"setting__search_history": "검색 기록 활성화",
|
||||
"setting__search_hot": "인기 검색어 활성화",
|
||||
"setting__sync": "데이터 동기화",
|
||||
"setting__sync_client_address": "현재 기기 주소: {address}",
|
||||
"setting__sync_client_host": "동기화 서비스 주소",
|
||||
"setting__sync_client_host_tip": "http://<호스트>:<포트>",
|
||||
"setting__sync_client_mode": "클라이언트 모드",
|
||||
"setting__sync_client_status": "상태: {status}",
|
||||
"setting__sync_code_blocked_ip": "현재 기기의 IP가 서버에 의해 차단되었습니다!",
|
||||
"setting__sync_code_fail": "유효하지 않은 연결 코드",
|
||||
"setting__sync_enable": "동기화 활성화",
|
||||
"setting__sync_mode": "동기화 모드",
|
||||
"setting__sync_mode_client": "클라이언트",
|
||||
"setting__sync_mode_server": "서버",
|
||||
"setting__sync_server_address": "동기화 서비스 주소: {address}",
|
||||
"setting__sync_server_auth_code": "연결 코드: {code}",
|
||||
"setting__sync_server_device": "연결된 기기: {devices}",
|
||||
"setting__sync_server_device_list_btn_remove": "삭제",
|
||||
"setting__sync_server_device_list_noitem": "아무것도 없습니다 ┗( ▔, ▔ )┛",
|
||||
"setting__sync_server_device_list_time": "마지막 연결 시간: {time}",
|
||||
"setting__sync_server_device_list_tips": "💡 기기를 삭제한 후 다시 연결하려면 연결 코드를 다시 입력해야 합니다",
|
||||
"setting__sync_server_device_list_title": "인증된 기기",
|
||||
"setting__sync_server_mode": "서버 모드 (데이터가 평문으로 전송되므로 신뢰할 수 있는 네트워크에서 사용하세요)",
|
||||
"setting__sync_server_port": "동기화 포트",
|
||||
"setting__sync_server_port_tip": "포트 번호를 입력하세요",
|
||||
"setting__sync_server_refresh_code": "연결 코드 새로고침",
|
||||
"setting__sync_server_show_device_list": "인증된 기기 목록",
|
||||
"setting__sync_tip": "사용 방법은 FAQ의 \"동기화 기능\" 항목을 참고하세요",
|
||||
"setting__update": "업데이트",
|
||||
"setting__update_checking": "업데이트 확인 중...",
|
||||
"setting__update_commit_date": "커밋 날짜: ",
|
||||
"setting__update_commit_id": "커밋 해시: ",
|
||||
"setting__update_current_label": "현재 버전: ",
|
||||
"setting__update_downloading": "업데이트를 찾아 다운로드하는 중...⏳",
|
||||
"setting__update_init": "업데이트 중...",
|
||||
"setting__update_latest": "앱이 최신 버전입니다. 즐거운 시간 되세요!🥂",
|
||||
"setting__update_latest_label": "최신 버전: ",
|
||||
"setting__update_new_version": "새 버전을 찾았습니다. 어서 업데이트하세요~🚀🚀",
|
||||
"setting__update_open_version_modal_btn": "업데이트 창 열기",
|
||||
"setting__update_progress": "상태: ",
|
||||
"setting__update_show_change_log": "업데이트 후 첫 실행 시 변경 로그 표시",
|
||||
"setting__update_try_auto_update": "새 버전을 찾으면 자동으로 업데이트 다운로드 시도",
|
||||
"setting__update_unknown": "알 수 없음",
|
||||
"setting__update_unknown_tip": "❓ 최신 버전 정보를 가져오지 못했습니다. 정보 페이지에서 프로젝트 릴리스 주소를 열어 현재 버전이 최신인지 확인하는 것을 권장합니다",
|
||||
"setting_download_save_group_list_name": "해당 목록 이름의 하위 폴더에 파일 저장",
|
||||
"setting_sync_status_enabled": "연결됨",
|
||||
"song_list": "재생목록",
|
||||
"songlist__import_input_btn_confirm": "열기",
|
||||
"songlist__import_input_show_btn": "재생목록 열기",
|
||||
"songlist__import_input_tip": "재생목록 링크/ID를 입력하세요",
|
||||
"songlist__import_input_tip_1": "다른 서비스 간 재생목록은 지원되지 않습니다. 열려는 재생목록이 현재 선택한 서비스에 해당하는지 확인해 주세요",
|
||||
"songlist__import_input_tip_2": "열리지 않는 재생목록 링크가 있다면 피드백을 보내주세요",
|
||||
"songlist__import_input_tip_3": "간편판의 재생목록 ID나 링크로는 쿠거우 재생목록을 열 수 없지만, 정식판의 쿠거우 코드나 링크로는 열 수 있습니다",
|
||||
"songlist__import_input_tip_4": "넷이즈의 \"프라이빗 레이더\" 재생목록은 접근하려면 토큰이 필요합니다. 텐센트의 개인 재생목록은 프로필을 공개해야 접근할 수 있습니다. 자세한 내용은 다음을 참고하세요: ",
|
||||
"songlist__import_input_title": "공유된 재생목록 열기",
|
||||
"songlist__open_list": "\"{name}\" 재생목록 열기",
|
||||
"songlist__tag_info_hot_tag": "인기 태그",
|
||||
"source_alias_all": "통합",
|
||||
"source_alias_bd": "BD 뮤직",
|
||||
"source_alias_kg": "KG 뮤직",
|
||||
"source_alias_kw": "KW 뮤직",
|
||||
"source_alias_mg": "MG 뮤직",
|
||||
"source_alias_tx": "TX 뮤직",
|
||||
"source_alias_wy": "WY 뮤직",
|
||||
"source_alias_xm": "XM 뮤직",
|
||||
"source_all": "통합",
|
||||
"source_bd": "바이두",
|
||||
"source_kg": "쿠거우",
|
||||
"source_kw": "쿠워",
|
||||
"source_mg": "미구",
|
||||
"source_tx": "텐센트",
|
||||
"source_wy": "넷이즈",
|
||||
"source_xm": "샤미",
|
||||
"sync__auth_code_input_tip": "연결 코드를 입력하세요",
|
||||
"sync__auth_code_title": "연결 코드 입력이 필요합니다",
|
||||
"sync__dislike_merge_tip_desc": "두 목록의 내용을 병합하고 중복 항목을 제거합니다.",
|
||||
"sync__dislike_other_tip_desc": "\"동기화 취소\"를 선택하면 \"싫어요 곡\" 목록을 동기화하지 않습니다.",
|
||||
"sync__dislike_overwrite_tip_desc": "덮어써지는 쪽의 목록이 덮어쓰는 쪽의 목록으로 교체됩니다.",
|
||||
"sync__dislike_title": "{name}의 \"싫어요 곡\" 목록과 동기화할 방법을 선택하세요",
|
||||
"sync__list_merge_tip_desc": "두 목록을 병합합니다. 동일한 곡은 제거되고(병합 대상의 곡이 제거됨), 다른 곡은 추가됩니다.",
|
||||
"sync__list_other_tip_desc": "\"동기화 취소\"를 선택하면 목록을 동기화하지 않습니다.",
|
||||
"sync__list_overwrite_tip_desc": "덮어써지는 목록과 동일한 ID를 가진 목록은 삭제되고 덮어쓰는 쪽의 목록으로 교체됩니다(ID가 다른 목록은 병합됩니다). \"전체 덮어쓰기\"가 선택된 경우, 덮어써지는 쪽의 모든 목록이 제거되고 덮어쓰는 쪽의 목록으로 교체됩니다.",
|
||||
"sync__list_title": "\"{name}\"과(와) 목록을 동기화할 방법을 선택하세요",
|
||||
"sync__merge_btn_local_remote": "\"로컬 목록\"을 \"원격 목록\"과 병합",
|
||||
"sync__merge_btn_remote_local": "\"원격 목록\"을 \"로컬 목록\"과 병합",
|
||||
"sync__merge_label": "병합",
|
||||
"sync__merge_tip": "병합: ",
|
||||
"sync__other_label": "기타",
|
||||
"sync__other_tip": "기타: ",
|
||||
"sync__overwrite": "전체 덮어쓰기",
|
||||
"sync__overwrite_btn_cancel": "동기화 취소",
|
||||
"sync__overwrite_btn_local_remote": "\"로컬 목록\"으로 \"원격 목록\" 덮어쓰기",
|
||||
"sync__overwrite_btn_none": "실시간 동기화만 사용",
|
||||
"sync__overwrite_btn_remote_local": "\"원격 목록\"으로 \"로컬 목록\" 덮어쓰기",
|
||||
"sync__overwrite_label": "덮어쓰기",
|
||||
"sync__overwrite_tip": "덮어쓰기: ",
|
||||
"sync_status_disabled": "연결 안 됨",
|
||||
"tag__high_quality": "HQ",
|
||||
"tag__lossless": "SQ",
|
||||
"tag__lossless_24bit": "24bit",
|
||||
"theme_add": "테마 추가",
|
||||
"theme_auto": "자동",
|
||||
"theme_auto_tip": "우클릭하여 라이트/다크 테마 옵션 창 열기",
|
||||
"theme_black": "블랙",
|
||||
"theme_blue": "블루",
|
||||
"theme_blue2": "퍼플 블루",
|
||||
"theme_blue_plus": "블루 플러스",
|
||||
"theme_china_ink": "수묵",
|
||||
"theme_edit_modal__app_bg": "앱 배경 색상",
|
||||
"theme_edit_modal__aside_color": "사이드바 버튼 색상",
|
||||
"theme_edit_modal__badge": "라벨 색상",
|
||||
"theme_edit_modal__badge_primary": "메인 색상",
|
||||
"theme_edit_modal__badge_secondary": "보조 색상",
|
||||
"theme_edit_modal__badge_tertiary": "세 번째 색상",
|
||||
"theme_edit_modal__bg_image": "배경 이미지",
|
||||
"theme_edit_modal__bg_image_add": "배경 이미지 추가",
|
||||
"theme_edit_modal__bg_image_change": "배경 이미지 변경",
|
||||
"theme_edit_modal__bg_image_remove": "배경 이미지 제거",
|
||||
"theme_edit_modal__close_btn": "닫기",
|
||||
"theme_edit_modal__control_btn": "왼쪽 컨트롤 버튼 색상",
|
||||
"theme_edit_modal__copy": "테마 복사",
|
||||
"theme_edit_modal__dark": "다크 테마",
|
||||
"theme_edit_modal__dark_font": "다크 글꼴",
|
||||
"theme_edit_modal__font": "글꼴 색상",
|
||||
"theme_edit_modal__hide_btn": "상세 페이지 숨기기",
|
||||
"theme_edit_modal__main_bg": "콘텐츠 영역 배경 색상",
|
||||
"theme_edit_modal__min_btn": "최소화",
|
||||
"theme_edit_modal__pick_cancel": "초기화",
|
||||
"theme_edit_modal__pick_color": "색상 선택",
|
||||
"theme_edit_modal__pick_last_color": "이전 색상 사용",
|
||||
"theme_edit_modal__pick_save": "확인",
|
||||
"theme_edit_modal__preview": "미리보기",
|
||||
"theme_edit_modal__primary": "테마 색상",
|
||||
"theme_edit_modal__remove": "삭제",
|
||||
"theme_edit_modal__remove_tip": "이 테마를 정말 삭제하시겠습니까?",
|
||||
"theme_edit_modal__save_new": "복사",
|
||||
"theme_edit_modal__select_bg_file": "배경 이미지를 선택하세요",
|
||||
"theme_edit_modal__title_add": "테마 추가",
|
||||
"theme_edit_modal__title_edit": "테마 편집",
|
||||
"theme_green": "그린",
|
||||
"theme_grey": "그레이",
|
||||
"theme_happy_new_year": "새해",
|
||||
"theme_max_tip": "테마는 최대 10개까지 추가할 수 있습니다. 일부를 삭제하고 다시 추가해 보세요 😜",
|
||||
"theme_mid_autumn": "추석",
|
||||
"theme_ming": "밍",
|
||||
"theme_more_btn_show": "더 많은 테마",
|
||||
"theme_naruto": "나루토",
|
||||
"theme_orange": "오렌지",
|
||||
"theme_pink": "핑크",
|
||||
"theme_purple": "퍼플",
|
||||
"theme_red": "레드",
|
||||
"theme_selector_modal__dark_title": "다크 테마",
|
||||
"theme_selector_modal__light_title": "라이트 테마",
|
||||
"theme_selector_modal__theme_name": "테마 이름",
|
||||
"theme_selector_modal__title": "시스템 테마 따르기 옵션",
|
||||
"theme_selector_modal__title_tip": "참고: 라이트 테마와 다크 테마를 미리 설정해 두면 시스템의 라이트/다크 모드에 따라 자동으로 미리 설정한 테마로 전환됩니다.",
|
||||
"toggle_source_failed": "소스 변경에 실패했습니다. 검색 페이지에서 다른 서비스를 지정하여 직접 곡을 검색해 보세요.",
|
||||
"toggle_source_try": "다른 소스로 전환을 시도하는 중...",
|
||||
"update__downgrade_tip": "버전을 다운그레이드({ver})하신 것을 확인했습니다. 새 버전을 사용하다가 문제가 발생하면 먼저 FAQ를 확인해 주세요. FAQ에 문서화되지 않았거나 해결되지 않는 문제는 문서에 안내된 피드백 채널을 통해 알려주세요😘!\n\n참고: 새 버전에서 이전 버전으로 다운그레이드할 때는 먼저 재생목록을 백업하는 것을 권장합니다. 문제가 발생하면 데이터를 정리하여 해결할 수 있습니다. 데이터 폴더 경로는 문서에서 확인할 수 있습니다.",
|
||||
"update__error_top": "새 버전 다운로드에 실패했습니다. 다시 다운로드를 시도하거나 GitHub에서 직접 다운로드해 보세요.\n\n새 버전의 주소는 업데이트 팝업창에 포함되어 있습니다. 새 버전을 다운로드하여 바로 설치하세요. 설치에 실패하면 FAQ를 참고하세요.\n\n참고: 현재는 Windows Setup 버전만 자동 업데이트가 가능합니다. Linux의 AppImage 및 deb 버전도 동작하는 것으로 보이나 테스트되지 않았습니다. 다른 버전으로 설치한 사용자는 수동으로 다운로드하여 업데이트해야 합니다.",
|
||||
"update__ignore_cancel": "업데이트하지 않겠습니다 🤨",
|
||||
"update__ignore_confirm": "네, 업데이트할게요 ❤️",
|
||||
"update__ignore_confirm_tip": "현재는 Windows Setup 버전만 자동 업데이트가 가능합니다. Linux의 AppImage 및 deb 버전도 동작하는 것으로 보이나 테스트되지 않았습니다. 다른 버전으로 설치한 사용자는 수동으로 다운로드하여 업데이트해야 합니다.\n\n새 버전의 주소는 업데이트 팝업창에 포함되어 있습니다. 새 버전을 다운로드하여 바로 설치하세요. 설치에 실패하면 FAQ를 참고하세요.",
|
||||
"update__ignore_confirm_tip_confirm": "네, 이해했습니다",
|
||||
"update__ignore_tip": "현재 사용 중인 버전이 최신 버전보다 {num}개 버전 뒤처져 있습니다🤪. 더 나은 사용 경험을 위해 최신 버전으로 업데이트하는 것을 권장합니다~!\n참고: 새 버전을 사용하다가 문제가 발생하면 먼저 FAQ를 확인해 주세요. FAQ에 문서화되지 않았거나 해결되지 않는 문제는 문서에 안내된 피드백 채널을 통해 알려주세요😘!",
|
||||
"update__timeout_top": "다운로드 시간 초과 안내\n\n현재 GitHub 접속 속도가 느려 새 버전을 한 시간째 다운로드하고 있지만 아직 완료되지 않았습니다😳. 계속 기다릴 수도 있지만, 수동으로 업데이트하는 것을 강력히 권장합니다!",
|
||||
"user_api__allow_show_update_alert": "업데이트 팝업 표시 허용",
|
||||
"user_api__btn_export": "내보내기",
|
||||
"user_api__btn_import": "로컬 파일에서 가져오기",
|
||||
"user_api__btn_import_online": "네트워크에서 가져오기",
|
||||
"user_api__btn_remove": "삭제",
|
||||
"user_api__import_file": "음악 API 스크립트 파일을 선택하세요",
|
||||
"user_api__init_failed_alert": "음악 API \"{name}\" 초기화 실패: ",
|
||||
"user_api__max_tip": "동시에 최대 20개의 API만 사용할 수 있습니다🤪.\n\n계속 가져오려면 불필요한 API를 삭제하여 공간을 확보해 주세요.",
|
||||
"user_api__noitem": "아무것도 없습니다...😲",
|
||||
"user_api__note": "안내: API 스크립트의 실행 환경을 최대한 격리했지만, 악의적인 동작을 포함한 API 스크립트를 가져오면 시스템에 영향을 줄 수 있습니다. 신중하게 가져와 주세요.",
|
||||
"user_api__readme": "API 작성 안내: ",
|
||||
"user_api__title": "음악 API 관리",
|
||||
"user_api__update_alert": "음악 API \"{name}\"의 새 버전을 찾았습니다: ",
|
||||
"user_api__update_alert_open_url": "업데이트 주소 열기",
|
||||
"user_api_import__failed": "음악 API 가져오기에 실패했습니다:\n\n{message}",
|
||||
"user_api_import_online__input_confirm": "가져오기",
|
||||
"user_api_import_online__input_loading": "가져오는 중...",
|
||||
"user_api_import_online__input_tip": "HTTP 링크를 입력하세요",
|
||||
"user_api_import_online__title": "네트워크에서 음악 API 가져오기"
|
||||
}
|
||||
@@ -1,4 +1,14 @@
|
||||
[
|
||||
{
|
||||
"name": "English",
|
||||
"locale": "en-us",
|
||||
"country": "us"
|
||||
},
|
||||
{
|
||||
"name": "한국어",
|
||||
"locale": "ko-kr",
|
||||
"country": "kr"
|
||||
},
|
||||
{
|
||||
"name": "简体中文",
|
||||
"locale": "zh-cn",
|
||||
@@ -11,10 +21,5 @@
|
||||
"locale": "zh-tw",
|
||||
"alternate": "zh-hk",
|
||||
"country": "cn"
|
||||
},
|
||||
{
|
||||
"name": "English",
|
||||
"locale": "en-us",
|
||||
"country": "us"
|
||||
}
|
||||
]
|
||||
|
||||
@@ -613,7 +613,7 @@
|
||||
"songlist__import_input_tip_1": "不支持跨源打开歌单,请确认要打开的歌单与当前选择的歌单来源是否对应",
|
||||
"songlist__import_input_tip_2": "若遇到无法打开的歌单链接,欢迎反馈",
|
||||
"songlist__import_input_tip_3": "酷狗源歌单不支持用歌单 ID 或概念版链接打开,但支持用普通版链接或酷狗码打开",
|
||||
"songlist__import_input_tip_4": "网易源的「我喜欢」歌单需要 Token 才能打开,详情看 ",
|
||||
"songlist__import_input_tip_4": "网易源「私人雷达」歌单需要 Token 才能打开,企鹅源个人歌单需要将个人主页公开才能打开,请参阅 ",
|
||||
"songlist__import_input_title": "打开分享的歌单",
|
||||
"songlist__open_list": "打开「{name}」歌单",
|
||||
"songlist__tag_info_hot_tag": "热门标签",
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
"setting__basic_window_size_medium": "中",
|
||||
"setting__basic_window_size_oversized": "超大",
|
||||
"setting__basic_window_size_small": "小",
|
||||
"setting__basic_window_size_smaller": "更大",
|
||||
"setting__basic_window_size_smaller": "更小",
|
||||
"setting__basic_window_size_title": "設定軟體視窗尺寸",
|
||||
"setting__click_copy": "點擊複製",
|
||||
"setting__click_open": "點擊開啟",
|
||||
@@ -613,7 +613,7 @@
|
||||
"songlist__import_input_tip_1": "不支援跨平台開啟歌單,請確認要開啟的歌單與目前歌單的來源平台是否對應",
|
||||
"songlist__import_input_tip_2": "若遇到無法開啟的歌單連結,歡迎回報",
|
||||
"songlist__import_input_tip_3": "酷狗音樂歌單不支援用歌單 ID 與概念版連結開啟,但支援用普通版連結與酷狗碼開啟",
|
||||
"songlist__import_input_tip_4": "網易雲音樂的「我喜歡」歌單需要 Token 才能開啟,詳情看 ",
|
||||
"songlist__import_input_tip_4": "網易雲音樂「私人雷達」歌單需要 Token 才能開啟,企鵝音樂個人歌單需要將個人資料頁公開才能開啟,詳情看 ",
|
||||
"songlist__import_input_title": "開啟分享的歌單",
|
||||
"songlist__open_list": "開啟「{name}」歌單",
|
||||
"songlist__tag_info_hot_tag": "熱門標籤",
|
||||
|
||||
@@ -257,6 +257,8 @@ export const listenerAppEvent = (startApp: () => void) => {
|
||||
})
|
||||
global.lx.event_app.on('app_inited', () => {
|
||||
setProxy()
|
||||
global.lx.event_app.player_status({ volume: Math.trunc(global.lx.appSetting['player.volume'] * 100) })
|
||||
global.lx.event_app.player_status({ mute: global.lx.appSetting['player.isMute'] })
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ import registerModules from '@main/modules'
|
||||
// 初始化应用
|
||||
const init = () => {
|
||||
console.log('init')
|
||||
if (process.env.BUILD_WIN7 == 'true') import('./utils/winLegacy')
|
||||
void initAppSetting().then(() => {
|
||||
registerModules()
|
||||
global.lx.event_app.app_inited()
|
||||
|
||||
@@ -151,6 +151,7 @@ let client: LX.Sync.Client.Socket | null
|
||||
// let listSyncPromise: Promise<void>
|
||||
export const connect = (urlInfo: LX.Sync.Client.UrlInfo, keyInfo: LX.Sync.ClientKeyInfo) => {
|
||||
client = new WebSocket(`${urlInfo.wsProtocol}//${urlInfo.hostPath}/socket?i=${encodeURIComponent(keyInfo.clientId)}&t=${encodeURIComponent(aesEncrypt(SYNC_CODE.msgConnect, keyInfo.key))}`, {
|
||||
followRedirects: true,
|
||||
}) as LX.Sync.Client.Socket
|
||||
client.data = {
|
||||
keyInfo,
|
||||
|
||||
@@ -116,6 +116,27 @@ const messages = {
|
||||
music_name: '標題: ',
|
||||
music_singer: '演出者: ',
|
||||
},
|
||||
'ko-kr': {
|
||||
collect: '즐겨찾기 추가',
|
||||
uncollect: '즐겨찾기 해제',
|
||||
play: '재생',
|
||||
pause: '일시정지',
|
||||
next: '다음 곡',
|
||||
prev: '이전 곡',
|
||||
hide_win_main: '메인 창 숨기기',
|
||||
show_win_main: '메인 창 표시',
|
||||
hide_win_lyric: '가사 창 닫기',
|
||||
show_win_lyric: '가사 창 열기',
|
||||
lock_win_lyric: '가사 창 잠금',
|
||||
unlock_win_lyric: '가사 창 잠금 해제',
|
||||
top_win_lyric: '가사 항상 위에 표시',
|
||||
untop_win_lyric: '항상 위에 표시 해제',
|
||||
show_statusbar_lyric: '상태 표시줄에 가사 표시',
|
||||
hide_statusbar_lyric: '상태 표시줄 가사 숨기기',
|
||||
exit: '종료',
|
||||
music_name: '제목: ',
|
||||
music_singer: '아티스트: ',
|
||||
},
|
||||
} as const
|
||||
type Messages = typeof messages
|
||||
type Langs = keyof Messages
|
||||
@@ -150,7 +171,7 @@ export const createTray = () => {
|
||||
// tray.setToolTip('LX Music')
|
||||
// createMenu()
|
||||
tray.setIgnoreDoubleClickEvents(true)
|
||||
if (isWin) {
|
||||
if (!isMac) {
|
||||
tray.on('click', () => {
|
||||
showMainWindow()
|
||||
})
|
||||
|
||||
@@ -109,14 +109,20 @@ const inflateScript = async(script: string) => new Promise<string>((resolve, rej
|
||||
})
|
||||
export const importApi = async(scriptRaw: string): Promise<LX.UserApi.UserApiInfo> => {
|
||||
let scriptInfo = parseScriptInfo(scriptRaw)
|
||||
const script = await deflateScript(scriptRaw)
|
||||
userApis ??= []
|
||||
for (const api of userApis) {
|
||||
const existingScript = scripts.get(api.id)
|
||||
if (existingScript === script) {
|
||||
throw new Error(`导入失败,脚本内容与已有的源「${api.name}」相同`)
|
||||
}
|
||||
}
|
||||
const apiInfo = {
|
||||
id: `user_api_${Math.random().toString().substring(2, 5)}_${Date.now()}`,
|
||||
...scriptInfo,
|
||||
allowShowUpdateAlert: true,
|
||||
}
|
||||
userApis ??= []
|
||||
userApis.push(apiInfo)
|
||||
const script = await deflateScript(scriptRaw)
|
||||
scripts.set(apiInfo.id, script)
|
||||
saveData()
|
||||
return apiInfo
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { isLinux } from '@common/utils'
|
||||
import { closeWindow, createWindow, getBounds, isExistWindow, alwaysOnTopTools, setBounds, setIgnoreMouseEvents, setSkipTaskbar } from './main'
|
||||
import { sendConfigChange } from './rendererEvent'
|
||||
import { sendConfigChange, sendMouseLeave } from './rendererEvent'
|
||||
import { buildLyricConfig, getLyricWindowBounds, initWindowSize, watchConfigKeys } from './utils'
|
||||
import { mouseCheckTools } from './mouseCheckTools'
|
||||
|
||||
let isLock: boolean
|
||||
let isEnable: boolean
|
||||
@@ -21,14 +22,21 @@ export const setLrcConfig = (keys: Array<keyof LX.AppSetting>, setting: Partial<
|
||||
isLock = global.lx.appSetting['desktopLyric.isLock']
|
||||
if (global.lx.appSetting['desktopLyric.isLock']) {
|
||||
setIgnoreMouseEvents(true, { forward: !isLinux && global.lx.appSetting['desktopLyric.isHoverHide'] })
|
||||
mouseCheckTools.runCheck(sendMouseLeave)
|
||||
} else {
|
||||
setIgnoreMouseEvents(false, { forward: !isLinux && global.lx.appSetting['desktopLyric.isHoverHide'] })
|
||||
mouseCheckTools.cacnelCheck()
|
||||
}
|
||||
}
|
||||
if (keys.includes('desktopLyric.isHoverHide') && isHoverHide != global.lx.appSetting['desktopLyric.isHoverHide']) {
|
||||
isHoverHide = global.lx.appSetting['desktopLyric.isHoverHide']
|
||||
if (!isLinux) {
|
||||
setIgnoreMouseEvents(global.lx.appSetting['desktopLyric.isLock'], { forward: global.lx.appSetting['desktopLyric.isHoverHide'] })
|
||||
setIgnoreMouseEvents(global.lx.appSetting['desktopLyric.isLock'], { forward: isHoverHide })
|
||||
if (isHoverHide) {
|
||||
mouseCheckTools.runCheck(sendMouseLeave)
|
||||
} else {
|
||||
mouseCheckTools.cacnelCheck()
|
||||
}
|
||||
}
|
||||
}
|
||||
if (keys.includes('desktopLyric.isAlwaysOnTop') && isAlwaysOnTop != global.lx.appSetting['desktopLyric.isAlwaysOnTop']) {
|
||||
@@ -54,7 +62,7 @@ export const setLrcConfig = (keys: Array<keyof LX.AppSetting>, setting: Partial<
|
||||
if (keys.includes('desktopLyric.isLockScreen') && isLockScreen != global.lx.appSetting['desktopLyric.isLockScreen']) {
|
||||
isLockScreen = global.lx.appSetting['desktopLyric.isLockScreen']
|
||||
if (global.lx.appSetting['desktopLyric.isLockScreen']) {
|
||||
setBounds(getLyricWindowBounds(getBounds(), {
|
||||
setBounds(getLyricWindowBounds(getBounds()!, {
|
||||
x: 0,
|
||||
y: 0,
|
||||
w: global.lx.appSetting['desktopLyric.width'],
|
||||
@@ -77,6 +85,7 @@ export const setLrcConfig = (keys: Array<keyof LX.AppSetting>, setting: Partial<
|
||||
createWindow()
|
||||
} else {
|
||||
alwaysOnTopTools.clearLoop()
|
||||
mouseCheckTools.cacnelCheck()
|
||||
closeWindow()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,8 +172,8 @@ export const sendEvent = <T = any>(name: string, params?: T) => {
|
||||
mainSend(browserWindow, name, params)
|
||||
}
|
||||
|
||||
export const getBounds = (): Electron.Rectangle => {
|
||||
if (!browserWindow) throw new Error('window is not available')
|
||||
export const getBounds = (): Electron.Rectangle | null => {
|
||||
if (!browserWindow) return null
|
||||
return browserWindow.getBounds()
|
||||
}
|
||||
|
||||
|
||||
57
src/main/modules/winLyric/mouseCheckTools.ts
Normal file
57
src/main/modules/winLyric/mouseCheckTools.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
import { screen } from 'electron'
|
||||
import { getBounds } from './main'
|
||||
import { isLinux } from '@common/utils'
|
||||
|
||||
|
||||
export const mouseCheckTools = {
|
||||
timer: null as NodeJS.Timeout | null,
|
||||
isMouseInWindow: false,
|
||||
sendMouseLeave: null as (() => void) | null,
|
||||
|
||||
onInBoundsChange(isInBounds: boolean) {
|
||||
if (isInBounds) return
|
||||
this.stop()
|
||||
this.sendMouseLeave?.()
|
||||
},
|
||||
|
||||
checkMousePosition() {
|
||||
const bounds = getBounds()
|
||||
if (!bounds) return
|
||||
const point = screen.getCursorScreenPoint()
|
||||
const isInBounds = point.x >= bounds.x && point.x <= bounds.x + bounds.width &&
|
||||
point.y >= bounds.y && point.y <= bounds.y + bounds.height
|
||||
if (isInBounds !== this.isMouseInWindow) {
|
||||
this.isMouseInWindow = isInBounds
|
||||
this.onInBoundsChange(isInBounds)
|
||||
}
|
||||
},
|
||||
|
||||
start() {
|
||||
this.timer = setTimeout(() => {
|
||||
this.timer = null
|
||||
this.checkMousePosition()
|
||||
this.start()
|
||||
}, 500)
|
||||
},
|
||||
|
||||
stop() {
|
||||
if (!this.timer) return
|
||||
clearTimeout(this.timer)
|
||||
this.timer = null
|
||||
// console.log('stop check')
|
||||
},
|
||||
|
||||
setMouseInWindow(isInWindow: boolean) {
|
||||
this.isMouseInWindow = isInWindow
|
||||
},
|
||||
runCheck(sendMouseLeave: () => void) {
|
||||
if (isLinux || !global.lx.appSetting['desktopLyric.isLock'] || !global.lx.appSetting['desktopLyric.isHoverHide'] || !this.isMouseInWindow) return
|
||||
// console.log('run check')
|
||||
this.sendMouseLeave = sendMouseLeave
|
||||
this.stop()
|
||||
this.start()
|
||||
},
|
||||
cacnelCheck() {
|
||||
this.stop()
|
||||
},
|
||||
}
|
||||
@@ -5,6 +5,7 @@ import { buildLyricConfig, getLyricWindowBounds } from './utils'
|
||||
import { sendNewDesktopLyricClient } from '@main/modules/winMain'
|
||||
import { getBounds, getMainFrame, sendEvent, setBounds, setResizeable } from './main'
|
||||
import { MessageChannelMain } from 'electron'
|
||||
import { mouseCheckTools } from './mouseCheckTools'
|
||||
|
||||
|
||||
export default () => {
|
||||
@@ -26,7 +27,7 @@ export default () => {
|
||||
})
|
||||
|
||||
mainOn<LX.DesktopLyric.NewBounds>(WIN_LYRIC_RENDERER_EVENT_NAME.set_win_bounds, ({ params: options }) => {
|
||||
setBounds(getLyricWindowBounds(getBounds(), options))
|
||||
setBounds(getLyricWindowBounds(getBounds()!, options))
|
||||
})
|
||||
|
||||
mainOn<boolean>(WIN_LYRIC_RENDERER_EVENT_NAME.set_win_resizeable, ({ params: resizable }) => {
|
||||
@@ -45,6 +46,16 @@ export default () => {
|
||||
// without going through the main process!
|
||||
console.log('request_main_window_channel')
|
||||
})
|
||||
|
||||
mainOn<boolean>(WIN_LYRIC_RENDERER_EVENT_NAME.mouse_enter_leave, ({ params: isEnter }) => {
|
||||
if (isEnter) {
|
||||
mouseCheckTools.setMouseInWindow(true)
|
||||
mouseCheckTools.runCheck(sendMouseLeave)
|
||||
} else {
|
||||
mouseCheckTools.setMouseInWindow(false)
|
||||
mouseCheckTools.cacnelCheck()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export const sendConfigChange = (setting: Partial<LX.DesktopLyric.Config>) => {
|
||||
@@ -55,3 +66,6 @@ export const sendMainWindowInitedEvent = () => {
|
||||
sendEvent(WIN_LYRIC_RENDERER_EVENT_NAME.main_window_inited)
|
||||
}
|
||||
|
||||
export const sendMouseLeave = () => {
|
||||
sendEvent(WIN_LYRIC_RENDERER_EVENT_NAME.mouse_enter_leave, false)
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { BrowserWindow, dialog, session } from 'electron'
|
||||
import path from 'node:path'
|
||||
import { createTaskBarButtons, getWindowSizeInfo } from './utils'
|
||||
import { getPlatform, isLinux, isWin } from '@common/utils'
|
||||
import { getOSVersion, getPlatform, isLinux, isMac, isWin } from '@common/utils'
|
||||
import { getProxy, openDevTools as handleOpenDevTools } from '@main/utils'
|
||||
import { mainSend } from '@common/mainIpc'
|
||||
import { sendFocus, sendTaskbarButtonClick } from './rendererEvent'
|
||||
@@ -40,6 +40,19 @@ const winEvent = () => {
|
||||
browserWindow.on('blur', () => {
|
||||
global.lx.event_app.main_window_blur()
|
||||
})
|
||||
browserWindow.on('enter-full-screen', () => {
|
||||
global.lx.event_app.main_window_fullscreen(true)
|
||||
})
|
||||
browserWindow.on('leave-full-screen', () => {
|
||||
global.lx.event_app.main_window_fullscreen(false)
|
||||
|
||||
// macOS needs here to set resizable to false after exiting full screen
|
||||
if (isMac) {
|
||||
if (browserWindow?.resizable) {
|
||||
browserWindow.setResizable(false)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
browserWindow.once('ready-to-show', () => {
|
||||
if (!global.envParams.cmdParams.hidden) {
|
||||
@@ -107,7 +120,7 @@ export const createWindow = () => {
|
||||
browserWindow = new BrowserWindow(options)
|
||||
|
||||
const winURL = process.env.NODE_ENV !== 'production' ? 'http://localhost:9080' : `file://${path.join(encodePath(__dirname), 'index.html')}`
|
||||
void browserWindow.loadURL(winURL + `?os=${getPlatform()}&dt=${global.envParams.cmdParams.dt}&dark=${shouldUseDarkColors}&theme=${encodeURIComponent(JSON.stringify(theme))}`)
|
||||
void browserWindow.loadURL(winURL + `?os=${getPlatform()}&osver=${encodeURIComponent(getOSVersion())}&dt=${global.envParams.cmdParams.dt}&dark=${shouldUseDarkColors}&theme=${encodeURIComponent(JSON.stringify(theme))}`)
|
||||
|
||||
winEvent()
|
||||
|
||||
@@ -228,13 +241,17 @@ export const toggleDevTools = () => {
|
||||
|
||||
export const setFullScreen = (isFullscreen: boolean): boolean => {
|
||||
if (!browserWindow) return false
|
||||
if (isLinux) { // linux 需要先设置为可调整窗口大小才能全屏
|
||||
// https://github.com/any-listen/any-listen/issues/190
|
||||
// in electron ^41.2.0, windows -dt mode need to set resizable to true before setting full screen
|
||||
if (!!global.envParams.cmdParams.dt || isLinux) {
|
||||
// linux 需要先设置为可调整窗口大小才能全屏
|
||||
if (isFullscreen) {
|
||||
browserWindow.setResizable(isFullscreen)
|
||||
browserWindow.setFullScreen(isFullscreen)
|
||||
} else {
|
||||
browserWindow.setFullScreen(isFullscreen)
|
||||
browserWindow.setResizable(isFullscreen)
|
||||
// windows/linux need to set resizable to true after exiting full screen
|
||||
if (!isMac) browserWindow.setResizable(isFullscreen)
|
||||
}
|
||||
} else {
|
||||
browserWindow.setFullScreen(isFullscreen)
|
||||
|
||||
@@ -3,8 +3,6 @@ import { registerRendererEvents as list } from '@main/modules/commonRenderers/li
|
||||
import { registerRendererEvents as dislike } from '@main/modules/commonRenderers/dislike'
|
||||
import app, { sendConfigChange } from './app'
|
||||
import hotKey from './hotKey'
|
||||
import kw_decodeLyric from './kw_decodeLyric'
|
||||
import tx_decodeLyric from './tx_decodeLyric'
|
||||
import userApi from './userApi'
|
||||
import sync from './sync'
|
||||
import data from './data'
|
||||
@@ -30,8 +28,6 @@ export default () => {
|
||||
dislike(sendEvent)
|
||||
app()
|
||||
hotKey()
|
||||
kw_decodeLyric()
|
||||
tx_decodeLyric()
|
||||
userApi()
|
||||
sync()
|
||||
data()
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
import { inflate } from 'zlib'
|
||||
import iconv from 'iconv-lite'
|
||||
import { mainHandle } from '@common/mainIpc'
|
||||
import { WIN_MAIN_RENDERER_EVENT_NAME } from '@common/ipcNames'
|
||||
|
||||
const handleInflate = async(data: Buffer) => {
|
||||
return new Promise((resolve: (result: Buffer) => void, reject) => {
|
||||
inflate(data, (err, result) => {
|
||||
if (err) {
|
||||
reject(err)
|
||||
return
|
||||
}
|
||||
resolve(result)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
const buf_key = Buffer.from('yeelion')
|
||||
const buf_key_len = buf_key.length
|
||||
|
||||
const decodeLyric = async(buf: Buffer, isGetLyricx: boolean) => {
|
||||
// const info = buf.slice(0, index).toString()
|
||||
// if (!info.startsWith('tp=content')) return null
|
||||
// const isLyric = info.includes('\r\nlrcx=0\r\n')
|
||||
if (buf.toString('utf8', 0, 10) != 'tp=content') return ''
|
||||
// const index = buf.indexOf('\r\n\r\n') + 4
|
||||
const lrcData = await handleInflate(buf.subarray(buf.indexOf('\r\n\r\n') + 4))
|
||||
|
||||
if (!isGetLyricx) return iconv.decode(lrcData, 'gb18030')
|
||||
|
||||
const buf_str = Buffer.from(lrcData.toString(), 'base64')
|
||||
const buf_str_len = buf_str.length
|
||||
const output = new Uint8Array(buf_str_len)
|
||||
let i = 0
|
||||
while (i < buf_str_len) {
|
||||
let j = 0
|
||||
while (j < buf_key_len && i < buf_str_len) {
|
||||
output[i] = buf_str[i] ^ buf_key[j]
|
||||
i++
|
||||
j++
|
||||
}
|
||||
}
|
||||
|
||||
return iconv.decode(Buffer.from(output), 'gb18030')
|
||||
}
|
||||
|
||||
|
||||
export default () => {
|
||||
mainHandle<{ lrcBase64: string, isGetLyricx: boolean }, string>(WIN_MAIN_RENDERER_EVENT_NAME.handle_kw_decode_lyric, async({ params: { lrcBase64, isGetLyricx } }) => {
|
||||
const lrc = await decodeLyric(Buffer.from(lrcBase64, 'base64'), isGetLyricx)
|
||||
return Buffer.from(lrc).toString('base64')
|
||||
})
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
import { createInflate, constants as zlibConstants } from 'node:zlib'
|
||||
// import path from 'path'
|
||||
import { mainHandle } from '@common/mainIpc'
|
||||
import { WIN_MAIN_RENDERER_EVENT_NAME } from '@common/ipcNames'
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/dot-notation, @typescript-eslint/quotes
|
||||
// const require = module[`require`].bind(module)
|
||||
|
||||
let qrc_decode: (buf: Buffer, len: number) => Buffer
|
||||
|
||||
const inflate = async(lrcBuf: Buffer) => new Promise<string>((resolve, reject) => {
|
||||
const buffer_builder: Buffer[] = []
|
||||
const decompress_stream = createInflate()
|
||||
.on('data', (chunk) => {
|
||||
buffer_builder.push(chunk)
|
||||
})
|
||||
.on('close', () => {
|
||||
resolve(Buffer.concat(buffer_builder).toString())
|
||||
})
|
||||
.on('error', (err: any) => {
|
||||
// console.log(err)
|
||||
if (err.errno !== zlibConstants.Z_BUF_ERROR) { // EOF: expected
|
||||
reject(err)
|
||||
}
|
||||
})
|
||||
// decompress_stream.write(lrcBuf)
|
||||
decompress_stream.end(lrcBuf)
|
||||
})
|
||||
|
||||
const decode = async(str: string): Promise<string> => {
|
||||
if (!str) return ''
|
||||
const buf = Buffer.from(str, 'hex')
|
||||
return inflate(qrc_decode(buf, buf.length))
|
||||
}
|
||||
|
||||
|
||||
// 感谢某位不愿透露姓名的大佬提供的C++算法源码,但由于作者不希望公开,所以将会以预构建二进制文件的形式加入代码仓库中
|
||||
const handleDecode = async(lrc: string, tlrc: string, rlrc: string) => {
|
||||
if (!qrc_decode) {
|
||||
// const nativeBindingPath = path.join(__dirname, '../build/Release/qrc_decode.node')
|
||||
// const nativeBindingPath = process.env.NODE_ENV !== 'production' ? path.join(__dirname, '../build/Release/qrc_decode.node')
|
||||
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
||||
const addon = require('qrc_decode.node')
|
||||
// console.log(addon)
|
||||
qrc_decode = addon.qrc_decode
|
||||
}
|
||||
|
||||
const [lyric, tlyric, rlyric] = await Promise.all([decode(lrc), decode(tlrc), decode(rlrc)])
|
||||
return {
|
||||
lyric,
|
||||
tlyric,
|
||||
rlyric,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
export default () => {
|
||||
mainHandle<{ lrc: string, tlrc: string, rlrc: string }, { lyric: string, tlyric: string, rlyric: string }>(WIN_MAIN_RENDERER_EVENT_NAME.handle_tx_decode_lyric, async({ params: { lrc, tlrc, rlrc } }) => {
|
||||
return handleDecode(lrc, tlrc, rlrc)
|
||||
})
|
||||
}
|
||||
@@ -5,10 +5,10 @@
|
||||
"./types"
|
||||
],
|
||||
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
"@common/*": ["common/*"],
|
||||
"@main/*": ["main/*"],
|
||||
"@static/*": ["static/*"],
|
||||
"@/*": ["./*"],
|
||||
"@common/*": ["../common/*"],
|
||||
"@main/*": ["../main/*"],
|
||||
"@static/*": ["../static/*"],
|
||||
"@/*": ["../*"],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { encodePath, isUrl, throttle } from '@common/utils'
|
||||
import { encodePath, isUrl, throttle, isMac } from '@common/utils'
|
||||
import migrateSetting from '@common/utils/migrateSetting'
|
||||
import getStore from '@main/utils/store'
|
||||
import { STORE_NAMES, URL_SCHEME_RXP } from '@common/constants'
|
||||
@@ -263,7 +263,7 @@ export const getTheme = () => {
|
||||
theme.config.extInfo['--background-image'] =
|
||||
isUrl(theme.config.extInfo['--background-image'])
|
||||
? `url(${theme.config.extInfo['--background-image']})`
|
||||
: `url(file:///${encodePath(joinPath(global.lxDataPath, 'theme_images', theme.config.extInfo['--background-image']))})`
|
||||
: `url(${encodePath(joinPath(global.lxDataPath, 'theme_images', theme.config.extInfo['--background-image']))})`
|
||||
}
|
||||
} else {
|
||||
themeId = global.lx.appSetting['theme.id'] == 'auto' && shouldUseDarkColors ? 'black' : 'green'
|
||||
@@ -293,7 +293,7 @@ export const setPowerSaveBlocker = (enabled: boolean) => {
|
||||
let isEnabled = powerSaveBlockerId != null && powerSaveBlocker.isStarted(powerSaveBlockerId)
|
||||
if (enabled) {
|
||||
if (isEnabled) return
|
||||
powerSaveBlockerId = powerSaveBlocker.start('prevent-app-suspension')
|
||||
powerSaveBlockerId = powerSaveBlocker.start(isMac ? 'prevent-display-sleep' : 'prevent-app-suspension')
|
||||
} else {
|
||||
if (!isEnabled) return
|
||||
powerSaveBlocker.stop(powerSaveBlockerId!)
|
||||
|
||||
44
src/main/utils/winLegacy.ts
Normal file
44
src/main/utils/winLegacy.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import os from 'node:os'
|
||||
|
||||
import { dialog } from 'electron'
|
||||
import { STORE_NAMES } from '@common/constants'
|
||||
import getStore from '@main/utils/store'
|
||||
import { openUrl } from '@common/utils/electron'
|
||||
|
||||
|
||||
const showWinLegacyMessage = () => {
|
||||
if (process.platform !== 'win32') return
|
||||
const storeKey = 'winLegacyMessageShown'
|
||||
const dataStore = getStore(STORE_NAMES.DATA)
|
||||
const count = dataStore.get<number>(storeKey) || 0
|
||||
if (count > 2) return
|
||||
const osVersion = os.release()
|
||||
const majorVersion = parseInt(osVersion.split('.')[0], 10)
|
||||
const isOldWindows = majorVersion < 10
|
||||
|
||||
if (isOldWindows) {
|
||||
const result = dialog.showMessageBoxSync({
|
||||
type: 'warning',
|
||||
title: 'Windows 旧版提示',
|
||||
message: '您正在使用专为旧版 Windows 准备的 LX Music,它仅用于实在无法升级到新版系统的用户。\n该版本缺乏安全更新,可能存在安全风险,并且功能未经测试,可能存在兼容性问题。\n\n如果您的设备支持 Windows 10 或更高版本,强烈建议升级系统,切换到标准版本的 LX Music,以获得更好的安全性和性能。',
|
||||
buttons: ['知道了'],
|
||||
})
|
||||
if (result === 0) {
|
||||
dataStore.set(storeKey, count + 1)
|
||||
}
|
||||
} else {
|
||||
const result = dialog.showMessageBoxSync({
|
||||
type: 'warning',
|
||||
title: '您正在使用旧版',
|
||||
message: '您正在使用专为旧版 Windows 准备的 LX Music,它仅用于实在无法升级到新版系统的用户,但您的系统似乎在标准版的支持范围内,为了获得最佳体验,请切换到 LX Music 的标准版本。\n\n注意:当前版本缺乏安全更新,可能存在安全风险,并且功能未经测试,可能存在兼容性问题。',
|
||||
buttons: ['跳转新版发布页', '知道了'],
|
||||
})
|
||||
if (result === 0) {
|
||||
void openUrl('https://github.com/lyswhut/lx-music-desktop/releases')
|
||||
} else if (result === 1) {
|
||||
dataStore.set('winLegacyMessageShown', count + 1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
showWinLegacyMessage()
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
createMusicInfoOrderClearStatement,
|
||||
createMusicInfoByListAndMusicInfoIdQueryStatement,
|
||||
createMusicInfoByMusicInfoIdQueryStatement,
|
||||
createMusicInfoOrderStatement,
|
||||
} from './statements'
|
||||
|
||||
const idFixRxp = /\.0$/
|
||||
@@ -368,3 +369,14 @@ export const overwriteListData = (lists: LX.DBService.UserListInfo[], musicInfos
|
||||
})(lists, musicInfos)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取列表内音乐的排序
|
||||
* @param listId 列表id
|
||||
* @param musicInfoId 音乐id
|
||||
* @returns 音乐排序信息
|
||||
*/
|
||||
export const getMusicInfoOrder = (listId: string, musicInfoId: string) => {
|
||||
const musicInfoOrderStatement = createMusicInfoOrderStatement()
|
||||
return musicInfoOrderStatement.get({ listId, musicInfoId })
|
||||
}
|
||||
|
||||
@@ -18,10 +18,12 @@ import {
|
||||
updateMusicInfoOrder,
|
||||
updateMusicInfos,
|
||||
updateUserLists as updateUserListsFromDB,
|
||||
getMusicInfoOrder,
|
||||
} from './dbHelper'
|
||||
|
||||
let userLists: LX.DBService.UserListInfo[]
|
||||
let musicLists = new Map<string, LX.Music.MusicInfo[]>()
|
||||
let rawPoss = new Map<string, number>()
|
||||
|
||||
const toDBMusicInfo = (musicInfos: LX.Music.MusicInfo[], listId: string, offset: number = 0): LX.DBService.MusicInfo[] => {
|
||||
return musicInfos.map((info, index) => {
|
||||
@@ -41,8 +43,10 @@ const toDBMusicInfo = (musicInfos: LX.Music.MusicInfo[], listId: string, offset:
|
||||
export const getAllUserList = (): LX.List.UserListInfo[] => {
|
||||
userLists ??= queryAllUserList()
|
||||
|
||||
rawPoss.clear()
|
||||
return userLists.map(list => {
|
||||
const { position, ...newList } = list
|
||||
rawPoss.set(list.id, position)
|
||||
return newList
|
||||
})
|
||||
}
|
||||
@@ -55,10 +59,15 @@ export const getAllUserList = (): LX.List.UserListInfo[] => {
|
||||
export const createUserLists = (position: number, lists: LX.List.UserListInfo[]) => {
|
||||
userLists ??= queryAllUserList()
|
||||
if (position < 0 || position >= userLists.length) {
|
||||
// 如果是最末尾,那么取最后一个列表的原始位置 + 1 作为新列表的原始位置,否则新列表的原始位置为 position
|
||||
// 因为原始 pos 可能比 userLists.length 大,所以不能直接用 userLists.length 作为新列表的原始位置
|
||||
const order = userLists.length ? (rawPoss.get(userLists.at(-1)!.id) ?? userLists.length) + 1 : 0
|
||||
const newLists: LX.DBService.UserListInfo[] = lists.map((list, index) => {
|
||||
const pos = order + index
|
||||
rawPoss.set(list.id, pos)
|
||||
return {
|
||||
...list,
|
||||
position: position + index,
|
||||
position: pos,
|
||||
}
|
||||
})
|
||||
insertUserLists(newLists)
|
||||
@@ -72,6 +81,8 @@ export const createUserLists = (position: number, lists: LX.List.UserListInfo[])
|
||||
})
|
||||
insertUserLists(newUserLists, true)
|
||||
userLists = newUserLists
|
||||
rawPoss.clear()
|
||||
for (const list of userLists) rawPoss.set(list.id, list.position)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,6 +108,7 @@ export const createUserLists = (position: number, lists: LX.List.UserListInfo[])
|
||||
export const removeUserLists = (ids: string[]) => {
|
||||
deleteUserLists(ids)
|
||||
userLists &&= queryAllUserList()
|
||||
for (const id of ids) rawPoss.delete(id)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -147,6 +159,8 @@ export const updateUserListsPosition = (position: number, ids: string[]) => {
|
||||
})
|
||||
insertUserLists(newUserLists, true)
|
||||
userLists = newUserLists
|
||||
rawPoss.clear()
|
||||
for (const list of userLists) rawPoss.set(list.id, list.position)
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -210,10 +224,14 @@ export const musicsAdd = (listId: string, musicInfos: LX.Music.MusicInfo[], addM
|
||||
arrUnshift(targetList, musicInfos)
|
||||
break
|
||||
case 'bottom':
|
||||
default:
|
||||
insertMusicInfoList(toDBMusicInfo(musicInfos, listId, targetList.length))
|
||||
default: {
|
||||
// 如果是添加到最后,那么取最后一个歌曲的原始位置 + 1 作为新歌曲的原始位置,否则新歌曲的原始位置为 position
|
||||
// 因为原始 pos 可能比 targetList.length 大,所以不能直接用 targetList.length 作为新歌曲的原始位置
|
||||
const order = targetList.length ? (getMusicInfoOrder(listId, targetList.at(-1)!.id)?.order ?? targetList.length) + 1 : 0
|
||||
insertMusicInfoList(toDBMusicInfo(musicInfos, listId, order))
|
||||
arrPush(targetList, musicInfos)
|
||||
break
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -257,10 +275,14 @@ export const musicsMove = (fromId: string, toId: string, musicInfos: LX.Music.Mu
|
||||
arrUnshift(toList, musicInfos)
|
||||
break
|
||||
case 'bottom':
|
||||
default:
|
||||
moveMusicInfo(fromId, ids, toDBMusicInfo(musicInfos, toId, toList.length))
|
||||
default:{
|
||||
// 如果是添加到最后,那么取最后一个歌曲的原始位置 + 1 作为新歌曲的原始位置,否则新歌曲的原始位置为 position
|
||||
// 因为原始 pos 可能比 targetList.length 大,所以不能直接用 targetList.length 作为新歌曲的原始位置
|
||||
const order = toList.length ? (getMusicInfoOrder(toId, toList.at(-1)!.id)?.order ?? toList.length) + 1 : 0
|
||||
moveMusicInfo(fromId, ids, toDBMusicInfo(musicInfos, toId, order))
|
||||
arrPush(toList, musicInfos)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
listSet = new Set<string>(ids)
|
||||
@@ -363,6 +385,8 @@ export const listDataOverwrite = (myListData: MakeOptional<LX.List.ListDataFull,
|
||||
if (userLists) userLists.splice(0, userLists.length, ...dbLists)
|
||||
else userLists = dbLists
|
||||
|
||||
rawPoss.clear()
|
||||
for (const list of userLists) rawPoss.set(list.id, list.position)
|
||||
musicLists.clear()
|
||||
musicLists.set(LIST_IDS.DEFAULT, listData.defaultList)
|
||||
musicLists.set(LIST_IDS.LOVE, listData.loveList)
|
||||
|
||||
@@ -145,6 +145,17 @@ export const createMusicInfoByMusicInfoIdQueryStatement = () => {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 创建根据列表Id与音乐id查询音乐排序语句
|
||||
* @returns 查询语句
|
||||
*/
|
||||
export const createMusicInfoOrderStatement = () => {
|
||||
const db = getDB()
|
||||
return db.prepare<[LX.DBService.ListMusicInfoQuery], LX.DBService.MusicInfoOrder>(`SELECT "listId", "musicInfoId", "order"
|
||||
FROM "main"."my_list_music_info_order"
|
||||
WHERE "listId"=@listId AND "musicInfoId"=@musicInfoId`)
|
||||
}
|
||||
|
||||
/**
|
||||
* 创建音乐信息排序插入语句
|
||||
* @returns 插入语句
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div id="container" :class="[{ lock: setting['desktopLyric.isLock'] }, { hide: isHide || (isHoverHide && isMouseEnter) }]">
|
||||
<div id="main" @mouseenter="handleMouseEnter" @mouseleave="handleMouseLeave" @mousemove="handleMouseMoveMain">
|
||||
<div id="container" :class="[{ lock: setting['desktopLyric.isLock'] }, { hide: isHide || isHoverHide }]">
|
||||
<div id="main">
|
||||
<transition enter-active-class="animated-fast fadeIn" leave-active-class="animated-fast fadeOut">
|
||||
<div v-show="!setting['desktopLyric.isLock']" class="control-bar">
|
||||
<layout-control-bar />
|
||||
@@ -41,7 +41,7 @@ import usePauseHide from '@lyric/useApp/usePauseHide'
|
||||
const isShowResize = window.os != 'windows'
|
||||
useCommon()
|
||||
const { handleMouseDown, handleTouchDown } = useWindowSize()
|
||||
const { handleMouseMoveMain, isHoverHide, isMouseEnter } = useHoverHide()
|
||||
const isHoverHide = useHoverHide()
|
||||
useLyric()
|
||||
useTheme()
|
||||
const isHide = usePauseHide()
|
||||
@@ -87,7 +87,8 @@ body {
|
||||
}
|
||||
&.hide {
|
||||
opacity: .05;
|
||||
&:hover {
|
||||
|
||||
&:not(.lock):hover {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
"compilerOptions": {
|
||||
"isolatedModules": true,
|
||||
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
"@common/*": ["common/*"],
|
||||
"@common/*": ["../common/*"],
|
||||
// "@renderer/*": ["renderer/*"],
|
||||
"@lyric/*": ["renderer-lyric/*"],
|
||||
"@static/*": ["static/*"],
|
||||
"@root/*": ["./*"],
|
||||
"@lyric/*": ["../renderer-lyric/*"],
|
||||
"@static/*": ["../static/*"],
|
||||
"@root/*": ["../*"],
|
||||
},
|
||||
"typeRoots": [ /* Specify multiple folders that act like './node_modules/@types'. */
|
||||
"./types"
|
||||
|
||||
@@ -1,98 +1,41 @@
|
||||
import { computed, ref } from '@common/utils/vueTools'
|
||||
import { computed, ref, onBeforeUnmount } from '@common/utils/vueTools'
|
||||
import { setting } from '@lyric/store/state'
|
||||
|
||||
let mouseCheckTools: {
|
||||
x: number
|
||||
y: number
|
||||
preX: number
|
||||
preY: number
|
||||
timeout: NodeJS.Timeout | null
|
||||
handleCheck: (setShow: () => void) => void
|
||||
handleMove: (x: number, y: number, setShow: () => void) => void
|
||||
startTimeout: (setShow: () => void) => void
|
||||
stopTimeout: () => void
|
||||
} = {
|
||||
x: 0,
|
||||
y: 0,
|
||||
preX: 0,
|
||||
preY: 0,
|
||||
timeout: null,
|
||||
handleCheck(setShow: () => void) {
|
||||
let xDiff = Math.abs(this.x - this.preX)
|
||||
let yDiff = Math.abs(this.y - this.preY)
|
||||
if (xDiff > 8) {
|
||||
if (this.x > this.preX) {
|
||||
if (this.x + xDiff * 1.25 > window.innerWidth - 16) {
|
||||
setShow()
|
||||
return
|
||||
}
|
||||
} else {
|
||||
if (this.x - xDiff * 1.25 < 8) {
|
||||
setShow()
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
if (yDiff > 8) {
|
||||
if (this.y > this.preY) {
|
||||
if (this.y + yDiff * 1.25 > window.innerHeight - 16) {
|
||||
setShow()
|
||||
}
|
||||
} else {
|
||||
if (this.y - yDiff * 1.25 < 8) {
|
||||
setShow()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// setShow(false)
|
||||
},
|
||||
handleMove(x: number, y: number, setShow: () => void) {
|
||||
// console.log(x, y, this.x, this.y)
|
||||
this.preX = this.x
|
||||
this.preY = this.y
|
||||
this.x = x
|
||||
this.y = y
|
||||
this.startTimeout(setShow)
|
||||
},
|
||||
startTimeout(setShow: () => void) {
|
||||
this.stopTimeout()
|
||||
this.timeout = setTimeout(this.handleCheck.bind(this), 200, setShow)
|
||||
},
|
||||
stopTimeout() {
|
||||
if (!this.timeout) return
|
||||
clearTimeout(this.timeout)
|
||||
this.timeout = null
|
||||
},
|
||||
}
|
||||
import { sendMouseEnterLeave, onMouseEnterLeave } from '@lyric/utils/ipc'
|
||||
|
||||
export default () => {
|
||||
const isMouseEnter = ref(false)
|
||||
|
||||
const isHoverHide = computed(() => {
|
||||
return setting['desktopLyric.isLock'] && setting['desktopLyric.isHoverHide']
|
||||
return setting['desktopLyric.isHoverHide'] && isMouseEnter.value
|
||||
})
|
||||
|
||||
const handleMouseMoveMain = (event: MouseEvent) => {
|
||||
if (!isHoverHide.value) return
|
||||
const handleMouseMove = () => {
|
||||
handleMouseEnter()
|
||||
mouseCheckTools.handleMove(event.clientX, event.clientY, () => {
|
||||
handleMouseLeave()
|
||||
})
|
||||
}
|
||||
const handleMouseEnter = () => {
|
||||
if (!isHoverHide.value || isMouseEnter.value) return
|
||||
if (isMouseEnter.value) return
|
||||
isMouseEnter.value = true
|
||||
sendMouseEnterLeave(true)
|
||||
}
|
||||
const handleMouseLeave = () => {
|
||||
if (!isHoverHide.value) return
|
||||
if (!isMouseEnter.value) return
|
||||
isMouseEnter.value = false
|
||||
mouseCheckTools.stopTimeout()
|
||||
sendMouseEnterLeave(false)
|
||||
}
|
||||
|
||||
return {
|
||||
isMouseEnter,
|
||||
isHoverHide,
|
||||
handleMouseMoveMain,
|
||||
}
|
||||
const removeMouseEnterLeaveListener = onMouseEnterLeave(({ params: isEnter }) => {
|
||||
isMouseEnter.value = isEnter
|
||||
})
|
||||
document.body.addEventListener('mousemove', handleMouseMove)
|
||||
document.body.addEventListener('mouseenter', handleMouseEnter)
|
||||
document.body.addEventListener('mouseleave', handleMouseLeave)
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
removeMouseEnterLeaveListener()
|
||||
document.body.removeEventListener('mousemove', handleMouseMove)
|
||||
document.body.removeEventListener('mouseenter', handleMouseEnter)
|
||||
document.body.removeEventListener('mouseleave', handleMouseLeave)
|
||||
})
|
||||
|
||||
return isHoverHide
|
||||
}
|
||||
|
||||
@@ -42,6 +42,16 @@ export const onMainWindowInited = (listener: LX.IpcRendererEventListener): Remov
|
||||
}
|
||||
}
|
||||
|
||||
export const sendMouseEnterLeave = (isEnter: boolean) => {
|
||||
rendererSend(WIN_LYRIC_RENDERER_EVENT_NAME.mouse_enter_leave, isEnter)
|
||||
}
|
||||
export const onMouseEnterLeave = (listener: LX.IpcRendererEventListenerParams<boolean>): RemoveListener => {
|
||||
rendererOn<boolean>(WIN_LYRIC_RENDERER_EVENT_NAME.mouse_enter_leave, listener)
|
||||
return () => {
|
||||
rendererOff(WIN_LYRIC_RENDERER_EVENT_NAME.mouse_enter_leave, listener)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* On Theme Change
|
||||
* @param listener LX.IpcRendererEventListenerParams<shouldUseDarkColors: boolean>
|
||||
|
||||
@@ -99,8 +99,11 @@ body {
|
||||
.disableTransparent {
|
||||
background-color: var(--color-content-background);
|
||||
|
||||
#body {
|
||||
border: 1Px solid var(--color-primary-light-500);
|
||||
&.linux #body {
|
||||
border: 1px solid var(--color-primary-light-500);
|
||||
}
|
||||
&.windows:not(.windows-11, .fullscreen) #body {
|
||||
border-top: 1px solid #aaa;
|
||||
}
|
||||
|
||||
#right {
|
||||
|
||||
@@ -66,6 +66,7 @@ import {
|
||||
import { appSetting } from '@renderer/store/setting'
|
||||
import { togglePlay, playNext, playPrev } from '@renderer/core/player'
|
||||
import { LIST_IDS } from '@common/constants'
|
||||
import { formatMusicName } from '@renderer/utils'
|
||||
|
||||
export default {
|
||||
name: 'CorePlayBar',
|
||||
@@ -112,7 +113,7 @@ export default {
|
||||
|
||||
const title = computed(() => {
|
||||
return musicInfo.name
|
||||
? appSetting['download.fileName'].replace('歌名', musicInfo.name).replace('歌手', musicInfo.singer)
|
||||
? formatMusicName(appSetting['download.fileName'], musicInfo.name, musicInfo.singer)
|
||||
: ''
|
||||
})
|
||||
|
||||
|
||||
@@ -66,6 +66,7 @@ import {
|
||||
import { appSetting } from '@renderer/store/setting'
|
||||
import { togglePlay, playNext, playPrev } from '@renderer/core/player'
|
||||
import { LIST_IDS } from '@common/constants'
|
||||
import { formatMusicName } from '@renderer/utils'
|
||||
|
||||
export default {
|
||||
name: 'CorePlayBar',
|
||||
@@ -112,7 +113,7 @@ export default {
|
||||
|
||||
const title = computed(() => {
|
||||
return musicInfo.name
|
||||
? appSetting['download.fileName'].replace('歌名', musicInfo.name).replace('歌手', musicInfo.singer)
|
||||
? formatMusicName(appSetting['download.fileName'], musicInfo.name, musicInfo.singer)
|
||||
: ''
|
||||
})
|
||||
|
||||
|
||||
@@ -68,6 +68,7 @@ import {
|
||||
import { appSetting } from '@renderer/store/setting'
|
||||
import { togglePlay, playNext, playPrev } from '@renderer/core/player'
|
||||
import { LIST_IDS } from '@common/constants'
|
||||
import { formatMusicName } from '@renderer/utils'
|
||||
|
||||
export default {
|
||||
name: 'CorePlayBar',
|
||||
@@ -114,7 +115,7 @@ export default {
|
||||
|
||||
const title = computed(() => {
|
||||
return musicInfo.name
|
||||
? appSetting['download.fileName'].replace('歌名', musicInfo.name).replace('歌手', musicInfo.singer)
|
||||
? formatMusicName(appSetting['download.fileName'], musicInfo.name, musicInfo.singer)
|
||||
: ''
|
||||
})
|
||||
|
||||
|
||||
@@ -15,31 +15,35 @@
|
||||
<div id="root" style="display: none;">
|
||||
</div>
|
||||
<script>
|
||||
const formatLang = (lang = 'en') => {
|
||||
if (lang === 'zh-cn') return 'zh-Hans'
|
||||
if (lang === 'zh-tw') return 'zh-Hant'
|
||||
return lang.split('-')[0]
|
||||
}
|
||||
window.setLang = (lang = navigator.language.toLocaleLowerCase()) => {
|
||||
document.documentElement.setAttribute('lang', formatLang(lang))
|
||||
}
|
||||
window.setLang()
|
||||
document.documentElement.classList.add(/os=(\w+)/.exec(window.location.search)[1])
|
||||
window.shouldUseDarkColors = /dark=true/.test(window.location.search)
|
||||
window.dt = /dt=true/.test(window.location.search)
|
||||
document.documentElement.classList.add(window.dt ? 'disableTransparent' : 'transparent')
|
||||
(() => {
|
||||
const formatLang = (lang = 'en') => {
|
||||
if (lang === 'zh-cn') return 'zh-Hans'
|
||||
if (lang === 'zh-tw') return 'zh-Hant'
|
||||
return lang.split('-')[0]
|
||||
}
|
||||
window.setLang = (lang = navigator.language.toLocaleLowerCase()) => {
|
||||
document.documentElement.setAttribute('lang', formatLang(lang))
|
||||
}
|
||||
window.setLang()
|
||||
const os = /os=(\w+)/.exec(window.location.search)?.[1]
|
||||
const osver = decodeURIComponent(/osver=([^&]+)/.exec(window.location.search)?.[1] || '')
|
||||
document.documentElement.classList.add(os, `${os}-${osver}`)
|
||||
window.shouldUseDarkColors = /dark=true/.test(window.location.search)
|
||||
window.dt = /dt=true/.test(window.location.search)
|
||||
document.documentElement.classList.add(window.dt ? 'disableTransparent' : 'transparent')
|
||||
|
||||
window.dom_style = document.createElement('style')
|
||||
window.dom_style = document.createElement('style')
|
||||
|
||||
window.setTheme = colors => {
|
||||
window.dom_style.innerText = `:root {${(Object.entries(colors)).map(([key, value]) => `${key}:${value};`).join('')}}`
|
||||
}
|
||||
const applyThemeColor = (theme) => {
|
||||
theme = JSON.parse(decodeURIComponent(theme))
|
||||
window.setTheme(theme.colors)
|
||||
document.body.appendChild(window.dom_style)
|
||||
}
|
||||
if (/theme=(.+)(#|$)/.test(window.location.search)) applyThemeColor(RegExp.$1)
|
||||
window.setTheme = colors => {
|
||||
window.dom_style.innerText = `:root {${(Object.entries(colors)).map(([key, value]) => `${key}:${value};`).join('')}}`
|
||||
}
|
||||
const applyThemeColor = (theme) => {
|
||||
theme = JSON.parse(decodeURIComponent(theme))
|
||||
window.setTheme(theme.colors)
|
||||
document.body.appendChild(window.dom_style)
|
||||
}
|
||||
if (/theme=(.+)(#|$)/.test(window.location.search)) applyThemeColor(RegExp.$1)
|
||||
})()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -51,7 +51,7 @@ let convolverDynamicsCompressor: DynamicsCompressorNode
|
||||
let gainNode: GainNode
|
||||
let panner: PannerNode
|
||||
let pitchShifterNode: AudioWorkletNode
|
||||
let pitchShifterNodePitchFactor: AudioParam | null
|
||||
let pitchShifterNodePitchFactor: AudioParam
|
||||
let pitchShifterNodeLoadStatus: 'none' | 'loading' | 'unconnect' | 'connected' = 'none'
|
||||
let pitchShifterNodeTempValue = 1
|
||||
let defaultChannelCount = 2
|
||||
@@ -65,6 +65,16 @@ export const createAudio = () => {
|
||||
audio.autoplay = true
|
||||
audio.preload = 'auto'
|
||||
audio.crossOrigin = 'anonymous'
|
||||
|
||||
// https://developer.chrome.com/blog/autoplay
|
||||
audio.addEventListener('playing', () => {
|
||||
if (audioContext?.state == 'suspended') {
|
||||
void audioContext.resume().catch((err) => {
|
||||
console.error('Resume audio context failed:', err)
|
||||
throw err
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
const initAnalyser = () => {
|
||||
@@ -322,7 +332,7 @@ const connectPitchShifterNode = () => {
|
||||
// convolverDynamicsCompressor.connect(pitchShifterNode)
|
||||
// pitchShifterNode.connect(panner)
|
||||
pitchShifterNodeLoadStatus = 'connected'
|
||||
pitchShifterNodePitchFactor!.value = pitchShifterNodeTempValue
|
||||
pitchShifterNodePitchFactor.value = pitchShifterNodeTempValue
|
||||
}
|
||||
const disconnectPitchShifterNode = () => {
|
||||
console.log('disconnect Pitch Shifter Node')
|
||||
@@ -331,7 +341,6 @@ const disconnectPitchShifterNode = () => {
|
||||
lastBiquadFilter.connect(convolver)
|
||||
lastBiquadFilter.connect(convolverSourceGainNode)
|
||||
pitchShifterNodeLoadStatus = 'unconnect'
|
||||
pitchShifterNodePitchFactor = null
|
||||
|
||||
audio!.removeEventListener('playing', connectNode)
|
||||
audio!.removeEventListener('pause', disconnectNode)
|
||||
@@ -373,7 +382,7 @@ export const setPitchShifter = (val: number) => {
|
||||
case 'connected':
|
||||
// a: 1 = 半音
|
||||
// value = 2 ** (a / 12)
|
||||
pitchShifterNodePitchFactor!.value = val
|
||||
pitchShifterNodePitchFactor.value = val
|
||||
break
|
||||
case 'unconnect':
|
||||
connectPitchShifterNode()
|
||||
|
||||
@@ -18,7 +18,7 @@ export const assertApiSupport = (source: LX.Source): boolean => {
|
||||
export const buildBgUrl = (originUrl: string, dataPath: string): string => {
|
||||
return isUrl(originUrl)
|
||||
? `url(${originUrl})`
|
||||
: `url(file:///${encodePath(joinPath(dataPath, originUrl).replaceAll('\\', '/'))})`
|
||||
: `url(${encodePath(joinPath(dataPath, originUrl).replaceAll('\\', '/'))})`
|
||||
}
|
||||
|
||||
export const getThemes = (callback: (themeInfo: LX.ThemeInfo) => void) => {
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
"compilerOptions": {
|
||||
"isolatedModules": true,
|
||||
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
|
||||
"@common/*": ["common/*"],
|
||||
"@renderer/*": ["renderer/*"],
|
||||
// "@lyric/*": ["renderer-lyric/*"],
|
||||
"@static/*": ["static/*"],
|
||||
"@root/*": ["./*"],
|
||||
"@common/*": ["../common/*"],
|
||||
"@renderer/*": ["../renderer/*"],
|
||||
// "@lyric/*": ["../renderer-lyric/*"],
|
||||
"@static/*": ["../static/*"],
|
||||
"@root/*": ["../*"],
|
||||
},
|
||||
"typeRoots": [ /* Specify multiple folders that act like './node_modules/@types'. */
|
||||
"./types"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { checkPath, joinPath, extname, basename, readFile, getFileStats } from '@common/utils/nodejs'
|
||||
import { formatPlayTime } from '@common/utils/common'
|
||||
import type { IComment } from 'music-metadata/lib/type'
|
||||
import { decodeKrc } from '@common/utils/lyricUtils/kg'
|
||||
import { type IAudioMetadata } from 'music-metadata'
|
||||
|
||||
export const checkDownloadFileAvailable = async(musicInfo: LX.Download.ListItem, savePath: string): Promise<boolean> => {
|
||||
return musicInfo.isComplate && !/\.ape$/.test(musicInfo.metadata.fileName) &&
|
||||
@@ -164,6 +164,7 @@ export const getLocalMusicFilePic = async(path: string) => {
|
||||
// return lyricInfo
|
||||
// }
|
||||
|
||||
type IComment = NonNullable<IAudioMetadata['common']['comment']> extends Array<infer U> ? U : never
|
||||
|
||||
/**
|
||||
* 获取歌曲文件歌词
|
||||
|
||||
@@ -6,6 +6,7 @@ import mg from './mg/index'
|
||||
import bd from './bd/index'
|
||||
import xm from './xm'
|
||||
import { supportQuality } from './api-source'
|
||||
import { versionChars } from './versionChars'
|
||||
|
||||
|
||||
const sources = {
|
||||
@@ -114,8 +115,14 @@ export default {
|
||||
const fSinger = filterStr(sortSingle(singer)).toLowerCase()
|
||||
const fAlbumName = filterStr(albumName).toLowerCase()
|
||||
const fInterval = getIntv(interval)
|
||||
const isEqualsInterval = (intv) => Math.abs((fInterval || intv) - (intv || fInterval)) < 5
|
||||
const isIncludesName = (name) => (fMusicName.includes(name) || name.includes(fMusicName))
|
||||
const isEqualsInterval = (intv) => Math.abs((fInterval || intv) - (intv || fInterval)) <= 5
|
||||
const isEqualsVersionMusicNameChar = (name) => {
|
||||
for (const char of versionChars) {
|
||||
if (name.includes(char) != fMusicName.includes(char)) return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
const isIncludesName = (name) => (fMusicName.includes(name) || name.includes(fMusicName)) && isEqualsVersionMusicNameChar(name)
|
||||
const isIncludesSinger = (singer) => fSinger ? (fSinger.includes(singer) || singer.includes(fSinger)) : true
|
||||
const isEqualsAlbum = (album) => fAlbumName ? fAlbumName == album : true
|
||||
|
||||
|
||||
@@ -132,6 +132,7 @@ export default {
|
||||
albumName: decodeName(item.remark),
|
||||
albumId: item.album_id,
|
||||
songmid: item.audio_id,
|
||||
albumAudioId: item.album_audio_id,
|
||||
source: 'kg',
|
||||
interval: formatPlayTime(item.duration),
|
||||
img: null,
|
||||
|
||||
@@ -85,6 +85,7 @@ export const filterMusicInfoList = (rawList) => {
|
||||
albumName: decodeName(item.album_info.album_name),
|
||||
albumId: item.album_info.album_id,
|
||||
songmid: item.audio_info.audio_id,
|
||||
albumAudioId: item.audio_info.audio_group_id,
|
||||
source: 'kg',
|
||||
interval: formatPlayTime(parseInt(item.audio_info.timelength) / 1000),
|
||||
img: null,
|
||||
|
||||
@@ -9,7 +9,7 @@ export default {
|
||||
page: 0,
|
||||
allPage: 1,
|
||||
musicSearch(str, page, limit) {
|
||||
const searchRequest = httpFetch(`https://songsearch.kugou.com/song_search_v2?keyword=${encodeURIComponent(str)}&page=${page}&pagesize=${limit}&userid=0&clientver=&platform=WebFilter&filter=2&iscorrection=1&privilege_filter=0&area_code=1`)
|
||||
const searchRequest = httpFetch(`http://songsearch.kugou.com/song_search_v2?platform=AndroidFilter&iscorrection=1&keyword=${encodeURIComponent(str)}&hifiquality=0&pagesize=${limit}&PrivilegeFilter=0&page=${page}`)
|
||||
return searchRequest.promise.then(({ body }) => body)
|
||||
},
|
||||
filterData(rawData) {
|
||||
@@ -49,10 +49,11 @@ export default {
|
||||
}
|
||||
return {
|
||||
singer: decodeName(formatSingerName(rawData.Singers, 'name')),
|
||||
name: decodeName(rawData.SongName),
|
||||
name: decodeName(`${rawData.OriSongName}${rawData.Suffix ? ` ${rawData.Suffix}` : ''}`),
|
||||
albumName: decodeName(rawData.AlbumName),
|
||||
albumId: rawData.AlbumID,
|
||||
songmid: rawData.Audioid,
|
||||
albumAudioId: rawData.MixSongID,
|
||||
source: 'kg',
|
||||
interval: formatPlayTime(rawData.Duration),
|
||||
_interval: rawData.Duration,
|
||||
|
||||
@@ -384,8 +384,10 @@ export default {
|
||||
},
|
||||
})
|
||||
if (!songInfo.list) {
|
||||
if (songInfo.global_collection_id) return this.getUserListDetail2(songInfo.global_collection_id)
|
||||
else return this.getUserListDetail4(songInfo, chain, page).catch(() => this.getUserListDetail5(chain))
|
||||
if (songInfo.global_collection_id) {
|
||||
return this.getListDetailByGcidChain(songInfo.global_collection_id, chain)
|
||||
.catch(() => this.getUserListDetail2(songInfo.global_collection_id))
|
||||
} else return this.getUserListDetail4(songInfo, chain, page).catch(() => this.getUserListDetail5(chain))
|
||||
}
|
||||
let list = await this.getMusicInfos(songInfo.list)
|
||||
// console.log(info, songInfo)
|
||||
@@ -490,6 +492,53 @@ export default {
|
||||
}
|
||||
return Promise.all(tasks).then(([...datas]) => datas.flat())
|
||||
},
|
||||
async getListDetailByGcidChain(id, chain) {
|
||||
const params = 'srcappid=2919&clientver=20000&clienttime=1789566751657&mid=1789566751657&uuid=1789566751657&dfid=-&listid=15&type=0&pagesize=50&global_collection_id=' + id + '&page=1&share_type=collect&appid=1058&chain=' + chain
|
||||
const data = await this.createHttp(`https://m3ws.kugou.com/v2/zlist/list?${params}&signature=${signatureParams(params, 'web')}`, {
|
||||
headers: {
|
||||
mid: '1586163263991',
|
||||
Referer: 'https://m3ws.kugou.com/share/index.php',
|
||||
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
|
||||
dfid: '-',
|
||||
clienttime: '1586163263991',
|
||||
},
|
||||
})
|
||||
const info = data.info[0]
|
||||
if (!info) throw new Error('get list error')
|
||||
let tasks = [Promise.resolve(data.list.info)]
|
||||
let page = 1
|
||||
let totalPage = Math.ceil(info.count / 50)
|
||||
while (page < totalPage) {
|
||||
const limit = 50
|
||||
page += 1
|
||||
const params = 'srcappid=2919&clientver=20000&clienttime=1789566751657&mid=1789566751657&uuid=1789566751657&dfid=-&listid=15&type=0&pagesize=' + limit + '&global_collection_id=' + id + '&page=' + page + '&share_type=collect&appid=1058&chain=' + chain
|
||||
tasks.push(this.createHttp(`https://m3ws.kugou.com/v2/zlist/list?${params}&signature=${signatureParams(params, 'web')}`, {
|
||||
headers: {
|
||||
mid: '1586163263991',
|
||||
Referer: 'https://m3ws.kugou.com/share/index.php',
|
||||
'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1',
|
||||
dfid: '-',
|
||||
clienttime: '1586163263991',
|
||||
},
|
||||
}).then(data => data.list.info))
|
||||
}
|
||||
const hashs = await Promise.all(tasks).then(([...datas]) => datas.flat())
|
||||
let list = await this.getMusicInfos(hashs)
|
||||
return {
|
||||
list,
|
||||
page: 1,
|
||||
limit: this.listDetailLimit,
|
||||
total: info.count,
|
||||
source: 'kg',
|
||||
info: {
|
||||
name: info.name,
|
||||
img: info.pic && info.pic.replace('{size}', 240),
|
||||
desc: info.intro,
|
||||
author: info.list_create_username,
|
||||
// play_count: formatPlayCount(info.playcount),
|
||||
},
|
||||
}
|
||||
},
|
||||
async getUserListDetail2(global_collection_id) {
|
||||
let id = global_collection_id
|
||||
if (id.length > 1000) throw new Error('get list error')
|
||||
@@ -613,7 +662,10 @@ export default {
|
||||
async getUserListDetail(link, page, retryNum = 0) {
|
||||
if (retryNum > 3) return Promise.reject(new Error('link try max num'))
|
||||
if (link.includes('#')) link = link.replace(/#.*$/, '')
|
||||
if (link.includes('global_collection_id')) return this.getUserListDetail2(link.replace(/^.*?global_collection_id=(\w+)(?:&.*$|#.*$|$)/, '$1'))
|
||||
if (link.includes('global_collection_id') && link.includes('chain')) {
|
||||
return this.getListDetailByGcidChain(link.replace(/^.*?global_collection_id=(\w+)(?:&.*$|#.*$|$)/, '$1'), link.replace(/^.*?chain=(\w+)(?:&.*$|#.*$|$)/, '$1'))
|
||||
}
|
||||
if (link.includes('chain=')) return this.getUserListDetail3(link.replace(/^.*?chain=(\w+)(?:&.*$|#.*$|$)/, '$1'), page)
|
||||
if (link.includes('gcid_')) {
|
||||
let gcid = link.match(/gcid_\w+/)?.[0]
|
||||
if (gcid) {
|
||||
@@ -621,7 +673,6 @@ export default {
|
||||
if (global_collection_id) return this.getUserListDetail2(global_collection_id)
|
||||
}
|
||||
}
|
||||
if (link.includes('chain=')) return this.getUserListDetail3(link.replace(/^.*?chain=(\w+)(?:&.*$|#.*$|$)/, '$1'), page)
|
||||
if (link.includes('.html')) {
|
||||
if (link.includes('zlist.html')) {
|
||||
link = link.replace(/^(.*)zlist\.html/, 'https://m3ws.kugou.com/zlist/list')
|
||||
@@ -632,6 +683,7 @@ export default {
|
||||
}
|
||||
} else if (!link.includes('song.html')) return this.getUserListDetail3(link.replace(/.+\/(\w+).html(?:\?.*|&.*$|#.*$|$)/, '$1'), page)
|
||||
}
|
||||
if (link.includes('global_collection_id')) return this.getUserListDetail2(link.replace(/^.*?global_collection_id=(\w+)(?:&.*$|#.*$|$)/, '$1'))
|
||||
|
||||
const requestObj_listDetailLink = httpFetch(link, {
|
||||
headers: {
|
||||
@@ -643,16 +695,18 @@ export default {
|
||||
// console.log(body, location)
|
||||
if (statusCode > 400) return this.getUserListDetail(link, page, ++retryNum)
|
||||
if (location) {
|
||||
if (location.includes('global_collection_id') && location.includes('chain')) {
|
||||
return this.getListDetailByGcidChain(location.replace(/^.*?global_collection_id=(\w+)(?:&.*$|#.*$|$)/, '$1'), location.replace(/^.*?chain=(\w+)(?:&.*$|#.*$|$)/, '$1'))
|
||||
}
|
||||
// console.log(location)
|
||||
if (location.includes('global_collection_id')) return this.getUserListDetail2(location.replace(/^.*?global_collection_id=(\w+)(?:&.*$|#.*$|$)/, '$1'))
|
||||
if (location.includes('chain=')) return this.getUserListDetail3(location.replace(/^.*?chain=(\w+)(?:&.*$|#.*$|$)/, '$1'), page)
|
||||
if (location.includes('gcid_')) {
|
||||
let gcid = link.match(/gcid_\w+/)?.[0]
|
||||
let gcid = location.match(/gcid_\w+/)?.[0]
|
||||
if (gcid) {
|
||||
const global_collection_id = await this.decodeGcid(gcid)
|
||||
if (global_collection_id) return this.getUserListDetail2(global_collection_id)
|
||||
}
|
||||
}
|
||||
if (location.includes('chain=')) return this.getUserListDetail3(location.replace(/^.*?chain=(\w+)(?:&.*$|#.*$|$)/, '$1'), page)
|
||||
if (location.includes('.html')) {
|
||||
if (location.includes('zlist.html')) {
|
||||
let link = location.replace(/^(.*)zlist\.html/, 'https://m3ws.kugou.com/zlist/list')
|
||||
@@ -664,6 +718,7 @@ export default {
|
||||
return this.getUserListDetail(link, page, ++retryNum)
|
||||
} else return this.getUserListDetail3(location.replace(/.+\/(\w+).html(?:\?.*|&.*$|#.*$|$)/, '$1'), page)
|
||||
}
|
||||
if (location.includes('global_collection_id')) return this.getUserListDetail2(location.replace(/^.*?global_collection_id=(\w+)(?:&.*$|#.*$|$)/, '$1'))
|
||||
// console.log('location', location)
|
||||
return this.getUserListDetail(location, page, ++retryNum)
|
||||
}
|
||||
@@ -740,6 +795,7 @@ export default {
|
||||
albumName: decodeName(item.album_name),
|
||||
albumId: item.album_id,
|
||||
songmid: item.audio_id,
|
||||
albumAudioId: item.album_audio_id,
|
||||
source: 'kg',
|
||||
interval: formatPlayTime(item.duration / 1000),
|
||||
img: null,
|
||||
@@ -863,6 +919,7 @@ export default {
|
||||
albumName: decodeName(item.album_info.album_name),
|
||||
albumId: item.album_info.album_id,
|
||||
songmid: item.audio_info.audio_id,
|
||||
albumAudioId: item.audio_info.audio_group_id,
|
||||
source: 'kg',
|
||||
interval: formatPlayTime(parseInt(item.audio_info.timelength) / 1000),
|
||||
img: null,
|
||||
|
||||
@@ -67,31 +67,31 @@ export default {
|
||||
}
|
||||
*/
|
||||
|
||||
const buf_key = Buffer.from('yeelion')
|
||||
const buf_key_len = buf_key.length
|
||||
const buildParams = (id, isGetLyricx) => {
|
||||
let params = `user=12345,web,web,web&requester=localhost&req=1&rid=MUSIC_${id}`
|
||||
if (isGetLyricx) params += '&lrcx=1'
|
||||
const buf_str = Buffer.from(params)
|
||||
const buf_str_len = buf_str.length
|
||||
const output = new Uint16Array(buf_str_len)
|
||||
let i = 0
|
||||
while (i < buf_str_len) {
|
||||
let j = 0
|
||||
while (j < buf_key_len && i < buf_str_len) {
|
||||
output[i] = buf_key[j] ^ buf_str[i]
|
||||
i++
|
||||
j++
|
||||
}
|
||||
}
|
||||
return Buffer.from(output).toString('base64')
|
||||
}
|
||||
// const buf_key = Buffer.from('yeelion')
|
||||
// const buf_key_len = buf_key.length
|
||||
// const buildParams = (id, isGetLyricx) => {
|
||||
// let params = `user=12345,web,web,web&requester=localhost&req=1&rid=MUSIC_${id}`
|
||||
// if (isGetLyricx) params += '&lrcx=1'
|
||||
// const buf_str = Buffer.from(params)
|
||||
// const buf_str_len = buf_str.length
|
||||
// const output = new Uint16Array(buf_str_len)
|
||||
// let i = 0
|
||||
// while (i < buf_str_len) {
|
||||
// let j = 0
|
||||
// while (j < buf_key_len && i < buf_str_len) {
|
||||
// output[i] = buf_key[j] ^ buf_str[i]
|
||||
// i++
|
||||
// j++
|
||||
// }
|
||||
// }
|
||||
// return Buffer.from(output).toString('base64')
|
||||
// }
|
||||
|
||||
// console.log(buildParams('207527604', false))
|
||||
// console.log(buildParams('207527604', true))
|
||||
|
||||
const timeExp = /^\[([\d:.]*)\]{1}/g
|
||||
const existTimeExp = /\[\d{1,2}:.*\d{1,4}\]/
|
||||
const existTimeExp = /\[\d{1,2}:.*\d{1,4}]/
|
||||
const lyricxTag = /^<-?\d+,-?\d+>/
|
||||
export default {
|
||||
/* sortLrcArr(arr) {
|
||||
@@ -168,14 +168,6 @@ export default {
|
||||
|
||||
if (!isLyricx && lrcT.length > lrc.length * 0.3 && lrc.length - lrcT.length > 6) {
|
||||
throw new Error('failed')
|
||||
// if (lrc.length * 0.4 < lrcT.length) { // 翻译数量需大于歌词数量的0.4倍,否则认为没有翻译
|
||||
// const tItem = lrc.pop()
|
||||
// tItem.time = lrc[lrc.length - 1].time
|
||||
// lrcT.push(tItem)
|
||||
// } else {
|
||||
// lrc = arr
|
||||
// lrcT = []
|
||||
// }
|
||||
}
|
||||
|
||||
return {
|
||||
@@ -235,35 +227,35 @@ export default {
|
||||
// },
|
||||
getLyric(musicInfo, isGetLyricx = true) {
|
||||
// this.getLyric2(musicInfo)
|
||||
const requestObj = httpFetch(`http://newlyric.kuwo.cn/newlyric.lrc?${buildParams(musicInfo.songmid, isGetLyricx)}`)
|
||||
requestObj.promise = requestObj.promise.then(({ statusCode, body, raw }) => {
|
||||
const requestObj = httpFetch(`http://mlyric.kuwo.cn/mobi.s?f=web&type=lyric&lrcx=${isGetLyricx ? 1 : 0}&rid=${musicInfo.songmid}&encode=utf8`)
|
||||
requestObj.promise = requestObj.promise.then(async({ statusCode, body, raw }) => {
|
||||
if (statusCode != 200) return Promise.reject(new Error(JSON.stringify(body)))
|
||||
return decodeLyric({ lrcBase64: raw.toString('base64'), isGetLyricx }).then(base64Data => {
|
||||
// let lrcInfo
|
||||
// try {
|
||||
// lrcInfo = this.parseLrc(Buffer.from(base64Data, 'base64').toString())
|
||||
// } catch {
|
||||
// return Promise.reject(new Error('Get lyric failed'))
|
||||
// }
|
||||
let lrcInfo
|
||||
// console.log(Buffer.from(base64Data, 'base64').toString())
|
||||
try {
|
||||
lrcInfo = this.parseLrc(Buffer.from(base64Data, 'base64').toString())
|
||||
} catch (err) {
|
||||
return Promise.reject(new Error('Get lyric failed'))
|
||||
}
|
||||
// console.log(lrcInfo)
|
||||
if (lrcInfo.tlyric) lrcInfo.tlyric = lrcInfo.tlyric.replace(lrcTools.rxps.wordTimeAll, '')
|
||||
try {
|
||||
lrcInfo.lxlyric = lrcTools.parse(lrcInfo.lyric)
|
||||
} catch {
|
||||
lrcInfo.lxlyric = ''
|
||||
}
|
||||
lrcInfo.lyric = lrcInfo.lyric.replace(lrcTools.rxps.wordTimeAll, '')
|
||||
if (!existTimeExp.test(lrcInfo.lyric)) return Promise.reject(new Error('Get lyric failed'))
|
||||
// console.log(lrcInfo)
|
||||
return lrcInfo
|
||||
})
|
||||
const lrcText = await decodeLyric(raw, isGetLyricx)
|
||||
// console.log(lrcText)
|
||||
// let lrcInfo
|
||||
// try {
|
||||
// lrcInfo = this.parseLrc(Buffer.from(base64Data, 'base64').toString())
|
||||
// } catch {
|
||||
// return Promise.reject(new Error('Get lyric failed'))
|
||||
// }
|
||||
let lrcInfo
|
||||
// console.log(Buffer.from(base64Data, 'base64').toString())
|
||||
try {
|
||||
lrcInfo = this.parseLrc(lrcText)
|
||||
} catch (err) {
|
||||
return Promise.reject(new Error('Get lyric failed'))
|
||||
}
|
||||
// console.log(lrcInfo)
|
||||
if (lrcInfo.tlyric) lrcInfo.tlyric = lrcInfo.tlyric.replace(lrcTools.rxps.wordTimeAll, '')
|
||||
try {
|
||||
lrcInfo.lxlyric = lrcTools.parse(lrcInfo.lyric)
|
||||
} catch {
|
||||
lrcInfo.lxlyric = ''
|
||||
}
|
||||
lrcInfo.lyric = lrcInfo.lyric.replace(lrcTools.rxps.wordTimeAll, '')
|
||||
if (!existTimeExp.test(lrcInfo.lyric)) return Promise.reject(new Error('Get lyric failed'))
|
||||
// console.log(lrcInfo)
|
||||
return lrcInfo
|
||||
})
|
||||
return requestObj
|
||||
},
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user