AVMC
A standalone AV metadata capture tool (current source: javbus) with a clean pipeline.
Features
- Accepts a single video file or a directory path.
- If a directory is provided, recursively scans video files and processes them one by one.
- Detects subtitle-style filenames and appends
-Cto output names. - Organizes output as
success_output_folder/Actor1,Actor2,Actor3/Number(orsuccess_output_folder/Numberwhen no actor). - Optional subtitle badge on poster image.
- Uses local
config.jsonby default; no dependency on parent project config.
Project Structure
main.py: CLI entrypipeline.py: scan + process pipelinesources/javbus.py: metadata scraperio_ops.py: image download/crop/badge, NFO writing, file moveconfig.json: runtime config
Installation
cd avmc
pip install -r requirements.txt
Usage
Run as module:
python -m avmc /path/to/video_or_dir
Run as script:
python avmc/main.py /path/to/video_or_dir
Options:
-c, --config: config file path (default:avmc/config.json)-p, --proxy: temporary proxy override (higher priority than config/env)--debug: dump raw HTML to.adc_debug/; keep source video in place and create a symlink in output--poster-badge-only: do not scrape metadata; only backup poster and add subtitle badge
If no path is provided, AVMC recursively scans the current directory.
Config
Default config file: avmc/config.json
{
"success_output_folder": "output",
"failed": {
"move_enabled": false,
"output_folder": "failed"
},
"proxy": {
"proxy": "",
"timeout": 10,
"retry": 3
},
"javbus": {
"cookie": "existmag=all"
},
"scan": {
"escape_folders": ["output"]
},
"subtitle_badge": {
"enabled": true,
"backup_enabled": true
},
"image": {
"jpeg_quality": 85,
"optimize": true,
"progressive": true
}
}
Subtitle Detection
Subtitle flag is inferred from filename patterns (case-insensitive), including compact forms like:
ABC123CABC123CHABC123CHSABC123CHT
When detected:
- output number becomes
NUMBER-C - NFO adds
中文字幕tag/genre - poster badge can be applied when enabled
Notes
- If scraping fails, source video is kept in place by default.
- Set
failed.move_enabled=trueto move failed files intofailed.output_folder. - Image host may return 403 depending on network/proxy/cookie status.
- In
--poster-badge-onlymode, poster backup is always created before writing badge.
Development
- See
AGENTS.mdfor coding-agent execution rules in this folder.
Metadata
Release files for avmc 0.1.3
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 | |
|---|---|---|---|---|
| avmc-0.1.3.tar.gz | 15.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| avmc-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.4 kB
Release files / avmc-0.1.3.tar.gz
| Download URL | avmc-0.1.3.tar.gz |
|---|---|
| Size | 15.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b775b2ade1b2ec50d6e4f03210bd7691adc5a9e16bd1db3b2a6d197adbe8e75e
|
|
BLAKE2b-256 checksum How to use checksums |
9d0821366bfc4201fb39f67dfb014369a9cbc6b5c1da0daf30cc538a99b28069
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Release files / avmc-0.1.3-py3-none-any.whl
| Download URL | avmc-0.1.3-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
148dfb07b417f70a0100fb6fbb6bd1bbfe8413a1030519ae9f6f89f3e6afa24b
|
|
BLAKE2b-256 checksum How to use checksums |
f019dc1accf220ea1f9f7c884c918eb6bd05d1ea912bcf7c7f204ce14feb4ea2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.0
|
Security for avmc 0.1.3
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.