The repository or configuration that created this release differ from a previous release. View details.
beets-nohirescd
nohirescd prevents high-resolution source audio from being matched to a CD release during a beets album import. It can also audit a library for existing matches that violate the same rule and send those albums through beets' normal reimport workflow.
If any source track exceeds the configured maximum bit depth or sample rate, the plugin removes candidates whose matched medium is CD. It filters both the initial candidate list and candidates returned by manual searches or entered IDs.
Install
python -m pip install "beets-nohirescd @ git+https://github.com/treyturner/beets-plugins.git#subdirectory=plugins/nohirescd"
Configure beets
Enable the plugin:
plugins:
- nohirescd
The defaults treat audio above 16-bit or 44.1 kHz as high resolution:
nohirescd:
max_bitdepth: 16
max_samplerate: 44100
cd_media_pattern: '(?:^|[^A-Za-z0-9])(?:HDCD|HQCD|CD(?:-R)?)(?:$|[^A-Za-z0-9])'
The default media pattern matches values such as CD, Enhanced CD, 8cm CD, SHM-CD, HDCD, HQCD, and CD-R. It deliberately does not match SACD.
Import behavior
On album import tasks, every source item is checked. A single item above either configured limit activates filtering for the whole album.
Both album-level media and each mapped track's media are checked. This catches mixed-media releases, which beets may represent with the generic album-level value Media while retaining CD on individual mapped tracks.
After removing candidates, the plugin recalculates beets' recommendation. This prevents quiet mode from retaining a recommendation based on a removed CD candidate and produces no recommendation when no valid candidates remain.
Audit existing albums
Run the command without a query to audit every album in the library:
beet nohirescd
The concise console report contains one line per violating album followed by album and track totals. An existing album is a violation when any of its tracks exceeds either configured resolution limit and any of its tracks has stored media matching cd_media_pattern. These may be different tracks on a mixed-media release. Singleton items are not included.
Standard beets album queries restrict the audit:
beet nohirescd albumartist:"Beyoncé"
The audit reads metadata already stored in the beets library and does not query MusicBrainz.
CSV report
Use -o or --output to write a detailed UTF-8 CSV while retaining the concise console report:
beet nohirescd --output nohirescd-audit.csv
The output contains one row per violating album and overwrites an existing file at the specified path. Its columns are:
album_id,mb_albumid,albumartist, andalbumpathandtrack_countmax_bitdepthandmax_sampleratemedia, containing the album's distinct stored track mediahires_tracksandcd_tracks, containing semicolon-separated track details that show why the album was flagged
No report file is created unless --output is supplied.
Reimport violations
Use --reimport to pass the violating albums directly to beets' library reimport pipeline instead of producing an audit report:
beet nohirescd --reimport
beet nohirescd --reimport year:1990..1999
The command preserves the normal import configuration and prompts, except that it always runs this album-only audit's results through album import mode. Any configured singleton mode is restored when the command finishes. Because the nohirescd candidate filter must run during reimport, import.autotag must be enabled. Depending on the beets import configuration and choices made during the session, reimporting can update library metadata and files. --reimport cannot be combined with --output.
Development
uv sync
uv run pytest
uv run mypy
uv run pyright
Metadata
Release files for beets-nohirescd 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| beets_nohirescd-0.1.2.tar.gz | 11.5 kB | With provenance | Details for beets_nohirescd-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| beets_nohirescd-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for beets_nohirescd-0.1.2-py3-none-any.whl |
Total release size: 18.8 kB
Release files / beets_nohirescd-0.1.2.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | beets_nohirescd-0.1.2.tar.gz |
|---|---|
| Size | 11.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad4d8373e039fd9fe28f933518fa726cf5fd3f2de2be2c8ec78f5a7994e22d50
|
|
BLAKE2b-256 checksum How to use checksums |
5d617414f742301ad0032ebd8f0f13563e547d5f364e94a23b65356b2430d134
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / beets_nohirescd-0.1.2-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | beets_nohirescd-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b680fd7f3c7c91910356df8a12099a0926ca73ac36d5bed4b3b98ee559120167
|
|
BLAKE2b-256 checksum How to use checksums |
24b5bf1efd26fd862ee70b8e87abb7946b43b9452dc848ded2b6b8c3b9e567c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for beets-nohirescd 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The configuration that created this release differs from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Attestation for beets_nohirescd-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.