Commit Graph
246 Commits
Author SHA1 Message Date
鲁树人 e22bf8f38b refactor: extract command execution logic into runQmpcMMKVCLi function and improve logging in LoadMMKVOrDefault and parseQmpcMMKVCliOutput 2026-10-19 23:54:18 +09:00
鲁树人 c0437c435a refactor: update LoadMMKVOrDefault to use exe variable and adjust default path for qmpc-mmkv-cli-exe flag 2026-10-19 23:49:57 +09:00
鲁树人 ca8c4aa078 feat: add flags to ignore known non-music file extensions and update processor logic to support this feature 2026-10-19 23:43:47 +09:00
鲁树人 06e97975d8 fix: enhance LoadFromPath function to include file size and optional CRC handling for improved error logging 2026-10-19 23:35:04 +09:00
鲁树人 89cd9d13c3 chore: update go-mmkv dependency to v0.1.6 and refactor QMC key merging logic 2026-10-19 23:18:50 +09:00
鲁树人 8864b11d4a fix(#7): set default value for qmc-android-db flag to empty and adjust loading logic to use current directory's player_process_db if not specified 2026-10-18 08:38:35 +09:00
鲁树人 c18a51af67 chore: update changelog for v0.2.20 release, adding new features and changes 2026-10-18 08:34:52 +09:00
鲁树人 bdb68efbb9 docs: add comprehensive agent guide for um-cli, detailing architecture, commands, and conventions 2026-10-18 08:28:55 +09:00
鲁树人 1028a1f2be feat(#2): support mflac2/mgg2 ext 2026-10-18 08:12:01 +09:00
鲁树人 09622d01a7 feat(#7): implement LoadAndroidDB function and add tests for loading ekeys from QQ Music Android SQLite database 2026-10-18 08:11:51 +09:00
鲁树人 3ed50f3f30 chore: update go.sum with new dependencies and versions 2026-10-18 08:11:48 +09:00
鲁树人 061876f9bf refactor(#8): update LoadMMKVOrDefault function to use MMKVLoaderOptions and implement platform-specific loading for Windows 2026-10-18 08:11:35 +09:00
鲁树人 107aa2c3a8 chore: update go-mmkv dependency to v0.1.4 and document MMKV parsing fix in changelog v0.2.19 2025-11-26 22:26:05 +09:00
鲁树人 a2190e0ff5 docs: update changelog v0.2.18 2025-11-17 08:46:23 +09:00
鲁树人 c104a0bc6e chore: add missing libc dep and cleanup 2025-11-17 08:31:34 +09:00
鲁树人 a163d40fb2 chore: upgrade deps 2025-11-12 20:48:38 +09:00
鲁树人 40f93b4dd2 chore: upgrade mmkv lib 2025-11-12 20:32:06 +09:00
鲁树人 8c1f40bfe1 docs: update changelog 2025-09-15 21:48:20 +09:00
鲁树人 aea3bd5714 fix: Handle musicex tag correctly 2025-09-15 21:35:12 +09:00
鲁树人 e4bfefd0a6 fix: use proper regex v0.2.17 2025-09-09 22:32:43 +09:00
鲁树人 b1aa3bacdf fix: relax regex to extract udid from plist v0.2.16 2025-09-09 22:24:16 +09:00
鲁树人 6ec434f6b1 docs: update v0.2.15 changelog 2025-09-09 21:54:16 +09:00
鲁树人 a46428e07c feat: support QQMusic from AppStore v0.2.15 2025-09-09 21:49:22 +09:00
鲁树人 57dd4b80b3 docs: add changelog v0.2.14 2025-09-08 23:42:08 +09:00
鲁树人 e06a21123f feat: QQMusic Mac v10 mmkv support 2025-09-08 23:30:27 +09:00
鲁树人 1b62887619 ci: bump go version to 1.25 v0.2.13 2025-09-06 23:59:55 +09:00
鲁树人 35dbfdc5d1 chore: update url to new git host 2025-09-06 23:58:58 +09:00
鲁树人 f6614973ee ci: print artifact information at end 2025-09-06 23:54:56 +09:00
鲁树人 00fefc1297 chore: rename project namespace 2025-09-06 23:50:08 +09:00
鲁树人 4671143030 refactor: restrict kgg db support to Windows only 2025-09-06 23:48:21 +09:00
鲁树人 9b0455b0fd refactor: improve mmkv logic 2025-09-06 23:44:07 +09:00
鲁树人 92ad51402e fix: use mmkv from github 2025-09-03 00:43:40 +09:00
鲁树人 589e573b55 Merge pull request 'Fix: Artist metadata is lost for NCM files with mixed-type artist arrays' (#131) from solitudechn/cli:fix/handle-mixed-type-artist into main
Reviewed-on: https://git.unlock-music.dev/um/cli/pulls/131
2025-08-11 17:09:24 +00:00
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