sonarr-lang-checker
English · Italiano
Find inconsistent audio-language coverage in a Sonarr v4 library. The CLI reports mixed-language seasons, compares seasons within a series, and checks whether episodes contain a requested set of languages.
The demo uses synthetic series, episode, and audio-track fixtures with the real analysis and CLI output code. It does not contact Sonarr. Regenerate the image with uv run python scripts/demo.py.
Sonarr v4 is required. Earlier versions are not supported.
Requirements
- Python 3.10 or newer
- uv
- Git for installation from the GitHub source URL
- A Sonarr v4 URL and API key
Installation
For versions listed on PyPI, use uv tool install sonarr-lang-checker or uvx --from sonarr-lang-checker sonarr-lang-checker --help.
Install directly from the default branch on GitHub:
uv tool install git+https://github.com/alsd4git/sonarr-lang-checker.git
sonarr-lang-checker --help
For a one-off run without keeping the tool installed:
uvx --from git+https://github.com/alsd4git/sonarr-lang-checker.git sonarr-lang-checker --help
No packaged release has been published yet. Once a release exists, append its tag
to the Git URL, for example @v0.1.0, to select that version. The release workflow
builds wheel and source distributions. Maintainers follow the
release procedure to validate both artifacts and finalize
the prepared notes in CHANGELOG.md before tagging.
Configuration
Create .env in the directory where you run the command:
API_KEY=replace-with-your-api-key
SONARR_URL=https://sonarr.example.org
Keep .env private. API keys passed as command-line arguments may be recorded in shell history or process listings.
Usage
# Standard scan
sonarr-lang-checker
# Print JSON to stdout
sonarr-lang-checker --json
# Save structured results, including partial-failure metadata
sonarr-lang-checker --structured-json --output report.json
# Report missing or partial Italian and English coverage
sonarr-lang-checker --wanted-langs ita,eng
# Include seasons that fully match the requested languages
sonarr-lang-checker --wanted-langs ita,eng --show-all
# Reduce concurrent Sonarr requests
sonarr-lang-checker --workers 2
Use sonarr-lang-checker --help for the complete option list.
Relevant options
| Option | Purpose |
|---|---|
--json |
Print the legacy JSON result shape to stdout. |
--structured-json |
Include results, failures, and complete metadata. |
--output PATH |
Write JSON output to a file. |
--wanted-langs LIST |
Check a comma-separated set such as ita,eng. |
--show-all |
Include monolingual or fully covered seasons. |
--ignore-unknown |
Exclude unknown audio tracks from language comparisons. |
--ignore-anime |
Skip series whose Sonarr type is Anime. |
--workers N |
Limit concurrent requests. The default is 4 and the maximum is 16. |
--timeout SECONDS |
Set the HTTP read timeout. |
Language codes are normalized before comparison. Track order does not matter, common aliases are unified, and unknown tracks use und.
Exit codes
| Code | Meaning |
|---|---|
0 |
The analysis completed. |
1 |
A fatal configuration or request error prevented the analysis. |
2 |
Partial results were produced because one or more series could not be fetched. |
Errors and partial-result summaries are written to stderr so JSON on stdout stays machine-readable.
Development
git clone https://github.com/alsd4git/sonarr-lang-checker.git
cd sonarr-lang-checker
uv sync --locked --dev
uv run sonarr-lang-checker --help
uv run ruff format --check .
uv run ruff check .
uv run pytest -q
uv build
main.py remains directly executable for compatibility, but the installed sonarr-lang-checker entry point is the preferred user-facing interface.
GitHub Actions runs tests on Linux, macOS, and Windows with Python 3.10–3.15. Formatting, lint, and the package smoke test run once on Linux with Python 3.15.
License
Released under the MIT License.
Metadata
Release files for sonarr-lang-checker 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sonarr_lang_checker-0.1.0.tar.gz | 16.9 kB | With provenance | Details for sonarr_lang_checker-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sonarr_lang_checker-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sonarr_lang_checker-0.1.0-py3-none-any.whl |
Total release size: 28.5 kB
Release files / sonarr_lang_checker-0.1.0.tar.gz
| Download URL | sonarr_lang_checker-0.1.0.tar.gz |
|---|---|
| Size | 16.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
169a67fd381e31969011d9f99f3912394803670568738ef1b5ea3ba438a46625
|
|
BLAKE2b-256 checksum How to use checksums |
b6e605bcaa5d4a241604713731e1fa9ca2e50d8d8b2cec0a9ea9ba1192bff463
|
| 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 Dec 2, 2026.
Transparency logRelease files / sonarr_lang_checker-0.1.0-py3-none-any.whl
| Download URL | sonarr_lang_checker-0.1.0-py3-none-any.whl |
|---|---|
| Size | 11.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d1f8b82adb4b196563c0ed17b2e5d1f6acda03133802703ef77385567931abf
|
|
BLAKE2b-256 checksum How to use checksums |
769bb17695073987b3525ad1370bbfb75c5b84679ee2593ad82e3ae645c63fc6
|
| 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 Dec 2, 2026.
Transparency logSecurity for sonarr-lang-checker 0.1.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sonarr_lang_checker-0.1.0.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 Dec 2, 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.