Skip to main content

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 --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

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.3.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resubname-0.3.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file resubname-0.3.1.tar.gz.

File metadata

  • Download URL: resubname-0.3.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for resubname-0.3.1.tar.gz
Algorithm Hash digest
SHA256 0a11bdc264a37d1db2795b37c76ba7827077f7a631a9e93217c096fce210d9ce
MD5 27b1f9ffa760c09b6e39cf99adcd3e1c
BLAKE2b-256 ab33c72afe97acda933657ca36c9c01b3705b2f031bf9d707782f43b5a0d4bac

See more details on using hashes here.

File details

Details for the file resubname-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: resubname-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for resubname-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a167ff4565300a8d6b29da53966e9f2c15350382b5d77d2624d65c78e79dd51
MD5 cf0baf50bddb37cd84db76e5a7dc6898
BLAKE2b-256 4a6d97f56f2aba1f418b424e5e3c77907395a23a65671e8251489a2ccb3f9308

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page