Skip to main content

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

Project details


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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: resubname-0.3.0.tar.gz
  • Upload date:
  • Size: 4.2 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.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for resubname-0.3.0.tar.gz
Algorithm Hash digest
SHA256 58a5a1707976801ab92d22c5df639affee7293a68b6a4e0213224a9911fc32ae
MD5 80e90569a597f5cdbb1db77884a2cd63
BLAKE2b-256 9d2d3b045c2ca9766c4739dfee9baa51eed19ea0bcd591082e9a6a1492f30bd2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: resubname-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 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.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for resubname-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 22b3a656fb9de4dc93626140911e4e42c2af16fd96d4a6fe0704e522b6c9eecf
MD5 9a1264f519d6c408fce2197ae54fe162
BLAKE2b-256 176b0cbf7101c4ecf4986f9c4d0a8240cc6c98528eecbea2914ecc7a198df79f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page