https://github.com/whtsky/resubname
https://github.com/whtsky/resubname
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/whtsky/resubname
- Owner: whtsky
- License: bsd-3-clause
- Created: 2019-10-10T14:06:41.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T14:30:19.000Z (10 months ago)
- Last Synced: 2025-04-05T15:27:56.538Z (10 months ago)
- Language: Python
- Size: 216 KB
- Stars: 14
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resubname
Rename subtitle filenames to match videos.
## Install with `pipx`
Using [pipx](https://pipxproject.github.io/pipx/) to install `resubname` is recommended.
```bash
pipx install resubname
```
## Example
```bash
> 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:
```bash
> 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 `--version` support.
### 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