DVTAG
Command-line tagger for doujin voice libraries. Point it at a folder tree that contains DLSite work numbers (RJ/BJ/VJ) in folder names and it will fetch metadata, write tags, and optionally transcode wav files.
What it does
- Recursively finds directories whose names include
RJxxxxxx,BJxxxxxx, orVJxxxxxx(6 or 8 digits) and treats each as a release. - Scrapes metadata from DLSite and refines title/cover details via Chobit when possible.
- Writes tags for FLAC, M4A, and MP3 (album, date, circle, seiyu, genres, cover, track/disc numbers).
- Tries to strip numbering prefixes from track titles based on filename patterns.
- Optional: transcode
.wavto.flacor.mp3using ffmpeg, deleting the source wavs after success.
Requirements
- Python 3.9+
- ffmpeg on PATH (only needed when using transcoding flags)
- Network access to dlsite.com and chobit.cc
Installation
pip install dvtag # or: pipx install dvtag
pip install --upgrade dvtag # upgrade (pipx upgrade dvtag)
Quick start
- Ensure each release folder name contains a work number (e.g.,
RJ123456,rj123456 bonus,xxx_RJ01123456). - Run:
dvtag /path/to/your/library # tag in place
dvtag -w2f /path/to/your/library # tag + transcode wav -> flac
dvtag -w2m /path/to/your/library # tag + transcode wav -> mp3 (320k)
CLI reference
usage: dvtag [-h] [-v] [-w2f] [-w2m] dirpath
Doujin Voice Tagging Tool (tagging in place)
positional arguments:
dirpath a required directory path
options:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-w2f transcode all wav files to flac [LOSELESS]
-w2m transcode all wav files to mp3
How it works (and current quirks)
- Discovery: walks the given directory; once a folder with a work number is found, tagging happens inside it instead of recursing deeper.
- Metadata: pulls work name, circle, seiyu, genres, sale date, cover from DLSite; Chobit is queried for a potentially shorter title and a square thumbnail if available.
- Cover choice: currently prefers the Chobit square thumbnail, but some releases look better with the standard DLSite cover (usually landscape). A user-selectable preference is a known need.
- Genre order: genres are kept in the order returned by DLSite. The tag comparison logic may still rewrite files when the same genres appear in a different order; smarter equality is on the roadmap.
- Track titles: attempts to remove numeric prefixes from filenames when they follow common track-number patterns; otherwise uses the raw stem.
- Logging: minimal console logging; improving verbosity/structure is planned.
- Idempotency: tags are only written when they differ from existing tags, but the gaps above can still cause redundant writes.
Current limitations and ideas
- Caching: no cache; repeated runs on large libraries hit DLSite/Chobit every time, slowing execution and adding load. Add a local metadata cache with expiry.
- Genre/tag comparison: treat genre lists as sets (or configurable) to avoid unnecessary rewrites while preserving source order.
- Logging and observability: structured logs, progress, and clearer error handling.
License
Metadata
Release files for dvtag 0.8.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 |
|---|---|---|---|---|
| dvtag-0.8.0.tar.gz | 12.9 kB | Without provenance | Details for dvtag-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dvtag-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for dvtag-0.8.0-py3-none-any.whl |
Total release size: 25.7 kB
Release files / dvtag-0.8.0.tar.gz
| Download URL | dvtag-0.8.0.tar.gz |
|---|---|
| Size | 12.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9c23e089c4e213d5ebde433deb41644324a3cff8c6d727fb9fc8e642a368f702
|
|
BLAKE2b-256 checksum How to use checksums |
b6fcb3418df34fa4863e55aaba8e6fb13ec67de07ca2d017ac9897b21d325c06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Release files / dvtag-0.8.0-py3-none-any.whl
| Download URL | dvtag-0.8.0-py3-none-any.whl |
|---|---|
| Size | 12.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57269cd5e7eeebc74dc9da80f536fc36af6521357ac81cf383892ab77ffe2ea1
|
|
BLAKE2b-256 checksum How to use checksums |
6612fe7956c0ede541547add1d110c0ad690647c46f5aa6028534cc5990eb8f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.22
|
Security for dvtag 0.8.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.