mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🦄 reactor: 优化上传策略
This commit is contained in:
parent
f4e4f594a1
commit
e0c87d6db6
@ -426,8 +426,8 @@ export class songRequest extends plugin {
|
||||
// 进行元数据编辑
|
||||
if (parts) {
|
||||
const tags = {
|
||||
title: parts[2].trim(),
|
||||
artist: parts[1].trim()
|
||||
title: parts[2].replace(/^\s+|\s+$/g, ''),
|
||||
artist: parts[1].replace(/^\s+|\s+$/g, '')
|
||||
};
|
||||
// 写入元数据
|
||||
let success = NodeID3.write(tags, cleanPath)
|
||||
|
Loading…
x
Reference in New Issue
Block a user