[PR #640] [MERGED] feat: 新增本地缓存功能 #552

Closed
opened 2026-02-27 07:12:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/640
Author: @imsyy
Created: 12/18/2025
Status: Merged
Merged: 12/19/2025
Merged by: @imsyy

Base: devHead: dev-local


📝 Commits (10+)

  • d366c0c feat: 更新缓存路径配置
  • 83b6d49 🎈 perf: 优化本地歌曲读取
  • 4b3845d feat: 封面图像压缩
  • 59a318e feat: 完善本地歌曲缓存
  • f2a714d 🐞 fix: 修复网页端音频无法初始化
  • b4efe73 🌈 style: 优化歌词菜单样式
  • 2ea86e2 feat: 完善大小计算
  • 2a8c3df feat: 优化缓存逻辑
  • accd673 🐞 fix: 修复网页端播放问题
  • b0881e7 feat: 新增音乐缓存

📊 Changes

34 files changed (+2185 additions, -590 deletions)

View changed files

📝 electron/main/ipc/ipc-cache.ts (+43 -140)
📝 electron/main/ipc/ipc-file.ts (+107 -29)
📝 electron/main/logger/index.ts (+1 -0)
electron/main/services/CacheService.ts (+305 -0)
electron/main/services/LocalMusicService.ts (+334 -0)
electron/main/services/MusicCacheService.ts (+118 -0)
📝 electron/main/store/index.ts (+4 -1)
📝 package.json (+3 -0)
📝 pnpm-lock.yaml (+451 -0)
📝 src/components/Card/SongCard.vue (+21 -16)
📝 src/components/Layout/Menu.vue (+13 -11)
📝 src/components/Modal/BatchList.vue (+1 -1)
📝 src/components/Player/FullPlayer.vue (+1 -1)
📝 src/components/Player/LyricMenu.vue (+4 -2)
📝 src/components/Player/MainAMLyric.vue (+0 -1)
📝 src/components/Player/MainLyric.vue (+0 -1)
📝 src/components/Player/PlayerSlider.vue (+1 -1)
📝 src/components/Setting/LocalSetting.vue (+22 -29)
📝 src/components/Setting/PlaySetting.vue (+14 -3)
📝 src/core/player/AudioManager.ts (+17 -11)

...and 14 more files

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imsyy/SPlayer/pull/640 **Author:** [@imsyy](https://github.com/imsyy) **Created:** 12/18/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@imsyy](https://github.com/imsyy) **Base:** `dev` ← **Head:** `dev-local` --- ### 📝 Commits (10+) - [`d366c0c`](https://github.com/imsyy/SPlayer/commit/d366c0c7ca071caf1bed2adf62cd54de0b076cb9) ✨ feat: 更新缓存路径配置 - [`83b6d49`](https://github.com/imsyy/SPlayer/commit/83b6d49725de607db82be4ffda5e8045a6b21dca) 🎈 perf: 优化本地歌曲读取 - [`4b3845d`](https://github.com/imsyy/SPlayer/commit/4b3845df62dd8756d005bba22cee5b3da79c02f7) ✨ feat: 封面图像压缩 - [`59a318e`](https://github.com/imsyy/SPlayer/commit/59a318ebb430a6c7ad94d002ebc925abd284023f) ✨ feat: 完善本地歌曲缓存 - [`f2a714d`](https://github.com/imsyy/SPlayer/commit/f2a714d02723ffe39c328f31b0417a99adf4c990) 🐞 fix: 修复网页端音频无法初始化 - [`b4efe73`](https://github.com/imsyy/SPlayer/commit/b4efe73bfcb02b37b4a5c9f43d98378fe1813100) 🌈 style: 优化歌词菜单样式 - [`2ea86e2`](https://github.com/imsyy/SPlayer/commit/2ea86e21288fa973670a0f8a9540eebd020b91b1) ✨ feat: 完善大小计算 - [`2a8c3df`](https://github.com/imsyy/SPlayer/commit/2a8c3df1ead1919386e932a1be93b73fbcd7bd35) ✨ feat: 优化缓存逻辑 - [`accd673`](https://github.com/imsyy/SPlayer/commit/accd6737a18ec5d0ceda6a6f1b5355b6355535be) 🐞 fix: 修复网页端播放问题 - [`b0881e7`](https://github.com/imsyy/SPlayer/commit/b0881e7164b1418b73e5ca7ce99d471e4e3cee61) ✨ feat: 新增音乐缓存 ### 📊 Changes **34 files changed** (+2185 additions, -590 deletions) <details> <summary>View changed files</summary> 📝 `electron/main/ipc/ipc-cache.ts` (+43 -140) 📝 `electron/main/ipc/ipc-file.ts` (+107 -29) 📝 `electron/main/logger/index.ts` (+1 -0) ➕ `electron/main/services/CacheService.ts` (+305 -0) ➕ `electron/main/services/LocalMusicService.ts` (+334 -0) ➕ `electron/main/services/MusicCacheService.ts` (+118 -0) 📝 `electron/main/store/index.ts` (+4 -1) 📝 `package.json` (+3 -0) 📝 `pnpm-lock.yaml` (+451 -0) 📝 `src/components/Card/SongCard.vue` (+21 -16) 📝 `src/components/Layout/Menu.vue` (+13 -11) 📝 `src/components/Modal/BatchList.vue` (+1 -1) 📝 `src/components/Player/FullPlayer.vue` (+1 -1) 📝 `src/components/Player/LyricMenu.vue` (+4 -2) 📝 `src/components/Player/MainAMLyric.vue` (+0 -1) 📝 `src/components/Player/MainLyric.vue` (+0 -1) 📝 `src/components/Player/PlayerSlider.vue` (+1 -1) 📝 `src/components/Setting/LocalSetting.vue` (+22 -29) 📝 `src/components/Setting/PlaySetting.vue` (+14 -3) 📝 `src/core/player/AudioManager.ts` (+17 -11) _...and 14 more files_ </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 07:12:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SPlayer#552
No description provided.