solitudechn
20b746bee5
fix(ncm): Handle mixed-type artist field in metadata parsing
...
The current implementation for parsing artist metadata in `ncmMetaMusic.GetArtists` does not handle cases where the "artist" JSON field is a list containing mixed-type inner lists.
For certain NCM files (often those with FLAC format), the artist data is structured as `[["Artist Name", 12345]]`. The existing type assertion for `[][]string` fails for this structure because the inner slice is of type `[]interface{}`, not `[]string`. This results in the artist metadata being dropped during the conversion process.
This commit enhances the `GetArtists` method by adding a new case to the `type switch` to specifically handle the `[]interface{}` type. The new logic iterates through the nested structure and correctly extracts the artist name, which is assumed to be the first string element in each inner slice.
This fix improves compatibility with a wider range of NCM files and ensures artist metadata is reliably parsed, preventing data loss for affected files.
2025-08-09 23:58:03 +00:00
鲁树人
0a94383ba3
ci: make zip work
2025-05-09 11:21:22 +09:00
鲁树人
369112af01
ci: fix repack script
2025-05-09 05:06:40 +09:00
鲁树人
111952199f
ci: allow manual trigger of build job
2025-05-09 05:03:00 +09:00
鲁树人
a217170077
ci: fix archive name and zip package
2025-05-09 05:00:21 +09:00
鲁树人
1a943309fa
ci: simplify packing script logic
2025-05-09 04:47:18 +09:00
鲁树人
c0649d1246
ci: remove i386 target
2025-05-09 04:47:06 +09:00
鲁树人
3344db1645
docs: update reference to gitea actions
2025-05-08 07:11:55 +09:00
鲁树人
791f9c0621
ci: strip archives, reduce verbosity
2025-05-08 07:02:42 +09:00
鲁树人
896ace49fd
ci: cleanup build job, follow old release naming
2025-05-08 06:36:33 +09:00
鲁树人
17cde2a1a5
refactor: rename functions to follow go pattern
2025-05-08 06:10:17 +09:00
鲁树人
61fba401c7
chore: mark default version as "custom"
v0.2.12
2025-05-07 09:27:34 +09:00
鲁树人
a968be6063
Merge pull request 'kgg 支持' ( #122 ) from feat/kgg into main
...
Reviewed-on: https://git.unlock-music.dev/um/cli/pulls/122
2025-05-07 00:26:25 +00:00
鲁树人
000ef4ac13
build: upgrade setup-go version
2025-05-07 09:18:00 +09:00
鲁树人
05e5783336
build: get ci working again
2025-05-07 09:13:47 +09:00
鲁树人
006bad8c48
feat: first version of kgg support
2025-05-07 08:12:57 +09:00
鲁树人
380ed78b6b
Merge pull request 'fix: .mflacm support' ( #117 ) from ccforeverd/cli:main into main
...
Reviewed-on: https://git.unlock-music.dev/um/cli/pulls/117
2025-02-18 11:07:38 +00:00
Zhang
208aceb1b5
fix: .mflacm support
2025-02-18 18:46:37 +08:00
鲁树人
28ca8cef60
docs: update readme about go version and how to build from source
2024-11-22 00:57:09 +09:00
鲁树人
2b0bd2985e
chore: bump golang and dependency version
2024-11-22 00:50:52 +09:00
鲁树人
72ace9fc62
chore: bump version to v0.2.11
v0.2.11
2024-11-05 16:56:40 +09:00
鲁树人
074e4f874f
fix #108 : rel path resolution in windows
2024-11-05 16:27:14 +09:00
鲁树人
2bfb5ffddf
chore: bump version to v0.2.10
v0.2.10
2024-11-04 14:25:02 +09:00
鲁树人
2c9de7c56c
fix #107 : windows dnd path error
2024-11-04 14:24:32 +09:00
鲁树人
b374c11c86
chore: bump app version to v0.2.9
v0.2.9
2024-11-02 13:59:22 +09:00
鲁树人
6493b2c5fc
fix #78 : skip parsing cover art if image is unsupported
2024-11-02 13:49:40 +09:00
鲁树人
f753b9c67d
fix #78 #106 : app crash due to imcompatible ncm metadata json
2024-11-02 13:44:29 +09:00
鲁树人
8829a3b3ba
refactor: rework on logging
2024-11-02 13:43:56 +09:00
鲁树人
b2ef27761f
chore: bump version to v0.2.8
v0.2.8
2024-10-25 23:03:34 +09:00
鲁树人
7f7cb66fe5
fix #103 : incorrect output path when input is a single file
2024-10-25 23:02:32 +09:00
鲁树人
77729cf653
chore: bump version to v0.2.7
v0.2.7
2024-10-21 08:45:09 +09:00
鲁树人
b317b89ae9
ci: append version number to file name, fix tar.gz.gz
archive.
2024-10-21 08:45:09 +09:00
鲁树人
89b629304e
chore: bump version to v0.2.6
v0.2.6
2024-10-21 07:30:22 +09:00
鲁树人
c0c3bda9ce
ci: add windows arm64 build
2024-10-21 07:29:52 +09:00
鲁树人
fa8f7a1565
chore: bump version to v0.2.5
v0.2.5
2024-10-21 06:23:17 +09:00
鲁树人
d4d5e5ddf4
ci: upload zip for windows build
2024-10-21 06:10:36 +09:00
鲁树人
57c1aa3e54
ci: produce zip for windows build
2024-10-21 06:04:54 +09:00
鲁树人
b0998d8c8a
docs: document steps to update CI pipeline
2024-10-21 06:02:31 +09:00
鲁树人
f819726f3e
chore: bump version to v0.2.4
v0.2.4
2024-10-21 03:59:52 +09:00
鲁树人
fbad7ec450
fix #102 : support multi-part kgm extensions (kgm.flac/vpr.flac)
2024-10-21 03:58:21 +09:00
鲁树人
19bc6c466e
refactor: allow multi-part extensions ( #102 )
2024-10-21 03:57:56 +09:00
鲁树人
b9e2a38f82
fix: do not throw error when file already exists
2024-10-21 03:56:52 +09:00
鲁树人
673ea8491f
docs: add do not fork notice
2024-10-13 05:45:25 +09:00
鲁树人
0d071a82be
feat #99 : support recursive processDir
v0.2.3
2024-10-08 22:20:12 +01:00
鲁树人
b8e6196248
chore: bump version to 0.2.3
2024-10-08 22:10:15 +01:00
鲁树人
1323fb9e1a
Merge pull request '修正 #59 #99 转换后移除原始文件处理' ( #100 ) from fix-59-99-remove-source into main
...
Reviewed-on: https://git.unlock-music.dev/um/cli/pulls/100
2024-10-08 21:06:44 +00:00
鲁树人
36df203bdd
fix: record last error when calling processDir
2024-10-08 22:03:29 +01:00
鲁树人
2afc232eb1
fix: don't force exit when processFile
fails.
2024-10-08 21:59:47 +01:00
鲁树人
2abdd47c9c
fix: typo
2024-10-08 21:59:27 +01:00
鲁树人
8b59bc026d
chore: ignore exe files
2024-10-08 21:59:19 +01:00