feat: 新增m4a文件格式支持

This commit is contained in:
涵曦 2024-07-05 14:55:47 +00:00
parent 4c1761468f
commit 1919bc84d9
2 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,7 @@ pdm run xiaomusic.py
- wav - wav
- ape - ape
- ogg - ogg
- m4a
> 本地音乐会搜索目录下上面格式的文件,下载的歌曲是 mp3 格式的。 > 本地音乐会搜索目录下上面格式的文件,下载的歌曲是 mp3 格式的。
> 已知 L05B L05C 不支持 flac 格式。 > 已知 L05B L05C 不支持 flac 格式。

View File

@ -4,6 +4,7 @@ SUPPORT_MUSIC_TYPE = [
".wav", ".wav",
".ape", ".ape",
".ogg", ".ogg",
".m4a",
] ]
LATEST_ASK_API = "https://userprofile.mina.mi.com/device_profile/v2/conversation?source=dialogu&hardware={hardware}&timestamp={timestamp}&limit=2" LATEST_ASK_API = "https://userprofile.mina.mi.com/device_profile/v2/conversation?source=dialogu&hardware={hardware}&timestamp={timestamp}&limit=2"