beetbox / beetbox/beets

Disable writing "0" to music files for total tracks/discs when values aren't available

Open
#6,194 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
15.7k
Forks
2.1k
Avg merge
4d 21h
Merged PRs (30d)
31

Description

I have "autotag: no" and "write: yes" in the config.yaml so beets won't add musicbrainz tags to my music files but the lastgenre plugin can still add genre tags. This works except that no matter what, beets still writes "0" to music file metadata for the total number of discs and the total number of tracks. So if "1" was previously the metadata tag for a track number, the new track number becomes "1/0", or if a track's disc number was previously tagged as "2", it becomes "2/0".

I prefer not to fill in these values in my library (which is why no values for total discs/tracks are imported into beets), but beets seems to require them in the database and thus also when writing to music files.

### Proposed solution

Either disable adding "0" in the beets library by default when no total number of discs/tracks is found on import, or add a configuration variable to prevent writing "0" to music files for these values.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.