From f340b18408077bac104c1299185c63046b533e1b Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 27 Apr 2024 15:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=81=E8=AE=B8=E6=B7=BB=E5=8A=A0=20`m4a`?= =?UTF-8?q?=E3=80=81`goa`=20=E6=A0=BC=E5=BC=8F=E7=9A=84=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E6=AD=8C=E6=9B=B2=E5=88=B0=E5=88=97=E8=A1=A8=E4=B8=AD=EF=BC=88?= =?UTF-8?q?#1864=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 4 ++++ src/renderer/views/List/MyList/actions.ts | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index eb5c45c3fb..056074c528 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -1,3 +1,7 @@ +### 新增 + +- 允许添加 `m4a`、`goa` 格式的本地歌曲到列表中(#1864) + ### 优化 - 优化白色托盘图标显示,修复windows下托盘图标不清晰的问题(#1842) diff --git a/src/renderer/views/List/MyList/actions.ts b/src/renderer/views/List/MyList/actions.ts index 6d0910df00..77ac78bc96 100644 --- a/src/renderer/views/List/MyList/actions.ts +++ b/src/renderer/views/List/MyList/actions.ts @@ -15,7 +15,9 @@ export const addLocalFile = async(listInfo: LX.List.MyListInfo) => { title: window.i18n.t('lists__add_local_file_desc'), properties: ['openFile', 'multiSelections'], filters: [ - { name: 'Media File', extensions: ['mp3', 'flac', 'ogg', 'wav'] }, + // https://support.google.com/chromebook/answer/183093 + // 3gp, .avi, .mov, .m4v, .m4a, .mp3, .mkv, .ogm, .ogg, .oga, .webm, .wav + { name: 'Media File', extensions: ['mp3', 'flac', 'ogg', 'oga', 'wav', 'm4a'] }, // { name: 'All Files', extensions: ['*'] }, ], })