[PR #807] [MERGED] 🦄 refactor: 重写本地扫描逻辑 #655

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

📋 Pull Request Information

Original PR: https://github.com/imsyy/SPlayer/pull/807
Author: @apoint123
Created: 2/2/2026
Status: Merged
Merged: 2/4/2026
Merged by: @imsyy

Base: devHead: refactor/localmusic-scan


📝 Commits (2)

  • 81f12f8 🦄 refactor: 重写本地扫描逻辑
  • 4e22944 🦄 refactor: 优化可靠性

📊 Changes

13 files changed (+1403 additions, -594 deletions)

View changed files

📝 Cargo.lock (+750 -16)
📝 electron/main/database/LocalMusicDB.ts (+7 -3)
📝 electron/main/ipc/ipc-file.ts (+124 -96)
📝 electron/main/services/LocalMusicService.ts (+52 -326)
📝 electron/main/windows/main-window.ts (+3 -5)
📝 native/external-media-integration/index.d.ts (+0 -25)
📝 native/external-media-integration/src/lib.rs (+0 -2)
native/external-media-integration/src/scanner.rs (+0 -110)
📝 native/tools/Cargo.toml (+28 -4)
📝 native/tools/index.d.ts (+27 -0)
📝 native/tools/src/lib.rs (+3 -0)
native/tools/src/scanner.rs (+400 -0)
📝 src/views/Local/layout.vue (+9 -7)

📄 Description

再次重写了本地扫描的逻辑,主要把原生代码从媒体控件的crate移动到了工具crate;删掉了LocalMusicService.ts里面大部分功能和原生模块重合的代码;还有一些性能改善


🔄 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/807 **Author:** [@apoint123](https://github.com/apoint123) **Created:** 2/2/2026 **Status:** ✅ Merged **Merged:** 2/4/2026 **Merged by:** [@imsyy](https://github.com/imsyy) **Base:** `dev` ← **Head:** `refactor/localmusic-scan` --- ### 📝 Commits (2) - [`81f12f8`](https://github.com/imsyy/SPlayer/commit/81f12f8ade1c5c1af24fbc2019d2738439574f56) 🦄 refactor: 重写本地扫描逻辑 - [`4e22944`](https://github.com/imsyy/SPlayer/commit/4e22944d95ca1260746a2c1d69d40a1e9c4b3eee) 🦄 refactor: 优化可靠性 ### 📊 Changes **13 files changed** (+1403 additions, -594 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+750 -16) 📝 `electron/main/database/LocalMusicDB.ts` (+7 -3) 📝 `electron/main/ipc/ipc-file.ts` (+124 -96) 📝 `electron/main/services/LocalMusicService.ts` (+52 -326) 📝 `electron/main/windows/main-window.ts` (+3 -5) 📝 `native/external-media-integration/index.d.ts` (+0 -25) 📝 `native/external-media-integration/src/lib.rs` (+0 -2) ➖ `native/external-media-integration/src/scanner.rs` (+0 -110) 📝 `native/tools/Cargo.toml` (+28 -4) 📝 `native/tools/index.d.ts` (+27 -0) 📝 `native/tools/src/lib.rs` (+3 -0) ➕ `native/tools/src/scanner.rs` (+400 -0) 📝 `src/views/Local/layout.vue` (+9 -7) </details> ### 📄 Description 再次重写了本地扫描的逻辑,主要把原生代码从媒体控件的crate移动到了工具crate;删掉了LocalMusicService.ts里面大部分功能和原生模块重合的代码;还有一些性能改善 --- <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:38 +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#655
No description provided.