Giter Club home page Giter Club logo

revidsub's Introduction

revidsub

Windows CMD batch to rename video (.mkv, .mp4, .avi, .wmv) like parent directory and rename VobSub subtitle files (.idx, .sub) accordingly and move them to the same (upper) directory and delete uneccessary files.

Warning! Using FIND to determine language of .idx (does it contain string "id: de"). Batch stopps and exits for now if NOT .idx doesn't contain "id: de" - future feature planned for other languages. So for now it's assumend, the .idx without language attribute is de/DEU/German, for lack of inspecting file contents - maybe somtimnes wrong or other language anyway.

Example

Usage:

run batch in main folder which holds subfolders with videos and subs sub-dirs

Before:

main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\example-video.s01e01-1080p.mkv
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\example-video.s01e01-1080p.nfo
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p-eng.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p-eng.sub
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p-eng-forced.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p-eng-forced.sub
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p.sub
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p-forced.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE\Subs\example-video.s01e01-1080p-forced.sub

After:

main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.mkv
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.eng.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.eng.sub
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.eng.forced.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.eng.forced.sub
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.deu.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.deu.sub
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.deu.forced.idx
main_folder\Video.S01E01.German.DL.1080p-EXAMPLE.deu.forced.sub

revidsub's People

Contributors

textator avatar

Watchers

 avatar

revidsub's Issues

Using FIND to determine language of .idx (does it contain string "id: de") doesn't work

Using FIND to determine language of .idx (does it contain string "id: de") doesn't work, yet. So for now it's assumend, the .idx without language attribute is de/DEU/German.
::files without language attribute (i.e. *1080.idx and NOT *1080-eng.idx) will be considered DE for lack of working string search in file
::find would have to be executed in .idx but also .sub has to be renamed accordingly
::therefore the attributeless files be checked and renamed at the end, so it works only for DEU files, assuming they are acctually DEU

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.