Rename subtitle filenames to match videos.
Project description
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.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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
resubname-0.2.0.tar.gz
(3.8 kB
view details)
Built Distribution
File details
Details for the file resubname-0.2.0.tar.gz
.
File metadata
- Download URL: resubname-0.2.0.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b5387487e2af119be9616e0c447b69af46fabe5950c248942cb375afab7a4ac |
|
MD5 | 3a43c802f118dd71e551dec066571915 |
|
BLAKE2b-256 | 07ca994447b75910d8847ee3718b38910f58b20a61d9a76d8bd329327c23424a |
File details
Details for the file resubname-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: resubname-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fe0b0583c3fc5d2e1c3e3c72bfe72e3bd0cc4b34280f30f2b5579a4c921d0b6 |
|
MD5 | ae5f647c3774ed6fc7bdb4f732713ead |
|
BLAKE2b-256 | 4a0c35142c5e5ec3b530bdb89a114dd169b3411505ac5fe37117d891c0998813 |