resubname
Rename subtitle filenames to match videos.
Install with pipx
Using pipx to install resubname is recommended.
pipx install resubname
Example
> ls
03.ass '[VCB-Studio] GIRLS und PANZER [03][Ma10p_1080p][x265_flac].mkv'
05.5.ass '[VCB-Studio] GIRLS und PANZER [05.5][Ma10p_1080p][x265_flac].mkv'
05.ass '[VCB-Studio] GIRLS und PANZER [05][Ma10p_1080p][x265_flac].mkv'
> resubname *.ass *.mkv
03.ass -> [VCB-Studio] GIRLS und PANZER [03][Ma10p_1080p][x265_flac].ass
05.5.ass -> [VCB-Studio] GIRLS und PANZER [05.5][Ma10p_1080p][x265_flac].ass
05.ass -> [VCB-Studio] GIRLS und PANZER [05][Ma10p_1080p][x265_flac].ass
> ls
'[VCB-Studio] GIRLS und PANZER [03][Ma10p_1080p][x265_flac].ass'
'[VCB-Studio] GIRLS und PANZER [03][Ma10p_1080p][x265_flac].mkv'
'[VCB-Studio] GIRLS und PANZER [05.5][Ma10p_1080p][x265_flac].ass'
'[VCB-Studio] GIRLS und PANZER [05.5][Ma10p_1080p][x265_flac].mkv'
'[VCB-Studio] GIRLS und PANZER [05][Ma10p_1080p][x265_flac].ass'
'[VCB-Studio] GIRLS und PANZER [05][Ma10p_1080p][x265_flac].mkv'
And you can exclude certain files:
> ls
'[ANE] Soredemo Machi wa Mawatte Iru - EP01 [BD 1920x1080 H.264 FLAC].CASO-SC.ass'
'[ANE] Soredemo Machi wa Mawatte Iru - EP02 [BD 1920x1080 H.264 FLAC].CASO-SC.ass'
'[ANK-Raws] それでも町は廻っている (Ep_05 Creditless ED) (BDrip 1920x1080 HEVC-YUV420P10 FLAC).mkv'
'[ANK-Raws] それでも町は廻っている 01 (BDrip 1920x1080 HEVC-YUV420P10 FLAC).mkv'
'[ANK-Raws] それでも町は廻っている 02 (BDrip 1920x1080 HEVC-YUV420P10 FLAC).mkv'
> resubname *.ass *.mkv -e creditless --dryrun
[ANE] Soredemo Machi wa Mawatte Iru - EP01 [BD 1920x1080 H.264 FLAC].CASO-SC.ass -> [ANK-Raws] それでも町は廻っている 01 (BDrip 1920x1080 HEVC-YUV420P10 FLAC).ass
[ANE] Soredemo Machi wa Mawatte Iru - EP02 [BD 1920x1080 H.264 FLAC].CASO-SC.ass -> [ANK-Raws] それでも町は廻っている 02 (BDrip 1920x1080 HEVC-YUV420P10 FLAC).ass
Help
resubname -h
Changelog
v0.3.0
- Display videos & subtitles number when their number dismatch.
- Add support for more video formats.
- Add
--versionsupport.
v0.2.0
- Show videos and subtitiles file list when their number dismatch.
- Stop complain about "Unknown suffix" for folders. Will just ignore them.
v0.1.0
- Initial Release
Metadata
Release files for resubname 0.3.1
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 |
|---|---|---|---|---|
| resubname-0.3.1.tar.gz | 3.5 kB | Without provenance | Details for resubname-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| resubname-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for resubname-0.3.1-py3-none-any.whl |
Total release size: 7.8 kB
Release files / resubname-0.3.1.tar.gz
| Download URL | resubname-0.3.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a11bdc264a37d1db2795b37c76ba7827077f7a631a9e93217c096fce210d9ce
|
|
BLAKE2b-256 checksum How to use checksums |
ab33c72afe97acda933657ca36c9c01b3705b2f031bf9d707782f43b5a0d4bac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / resubname-0.3.1-py3-none-any.whl
| Download URL | resubname-0.3.1-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a167ff4565300a8d6b29da53966e9f2c15350382b5d77d2624d65c78e79dd51
|
|
BLAKE2b-256 checksum How to use checksums |
4a6d97f56f2aba1f418b424e5e3c77907395a23a65671e8251489a2ccb3f9308
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for resubname 0.3.1
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.