Skip to content

Conversation

@caplod
Copy link

@caplod caplod commented Jul 17, 2025

with these changes you are not limited to flac files. so you can use mp3 and so on

caplod added 2 commits July 17, 2025 10:09
Major refactor to switch from FLAC-specific metaflac tool to universal
ID3 tag extraction using mutagen library:

- Replace metaflac_get_tags() with Track.load_from_file() using mutagen
- Support multiple audio formats: .mp3, .flac, .m4a, .ogg, .wav
- Extract metadata from ID3 tags with ORIGINALDATE preference
- Generate MD5 hash from year_artist_title instead of audio content
- Add configurable songs_dir option to TOML configuration
- Encode directly from tracks/ to output directory (no intermediate copying)
- Update encoding to 60-second mono AAC clips at 128kbps
- Add proper error handling for missing tags and unsupported formats

Update README.md to reflect new workflow and requirements.
@ruuda
Copy link
Owner

ruuda commented Jul 17, 2025

Thank you for taking the time to open a pull request!

This feature seems useful, however the code in this pull request is not up to my standards. It looks like this code was written by an LLM, so there is little point in me reviewing it. In most of my repositories I have a CONTRIBUTING.md that explains to not use LLMs, but I see I forgot to add one here. I added one now, apologies for not setting expectations ahead of time.

I’m not going to merge it in this form, but people who have files in a different format than flac can of course use your fork, and I’m sure they will be grateful for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants