Git Product home page Git Product logo

tvrename's Introduction

tvrename

Renames TV shows with filenames matching common Scene formats.

This tool is for educational purposes only, the author does not condone or encourage downloading or otherwise sharing of the files it can rename.

Formats

tvrename understands the following filename formats:

  • awesome.show.215.hdtv-grp.mp4
  • Awesome.Show.S02E15.HDTV.x264-grp.mp4

Variations on the above may work; if in doubt, --confirm!

Usage

$ tvrename.py --help
usage: tvrename.py [-h] [-n] [-c] files [files ...]

positional arguments:
  files

optional arguments:
  -h, --help     show this help message and exit
  -n, --dry-run  just print what would be done
  -c, --confirm  confirm before doing

Modes of operation

tvrename works in two ways:

  • Rename – if given a single file it will rename it into SxxExx format in the same directory, e.g. awesome.show.211.hdtv-grp.mp4 -> S02E11.mp4
  • Move – if given one or more files & a directory, tvrename will look for a directory with the show name and move it into place, e.g. awesome.show.211.hdtv-grp.mp4 -> Awesome Show/S02/S02E11.mp4

tvrename will not create directories, or overwrite files.

If multiple possible directories exist, it will prompt you:

tvrename.py awesome.show.211.hdtv-grp.mp4 ../TV/
Couldn't determine desination for awesome.show.215.hdtv-grp.mp4.
Candidates are:
[1] ../TV/Awesome Show
[2] ../TV/Awesome Show (2015)
Choice? [1-2/Q]

Options

  • -n / --dry-run – Prints what it would have done, for example:
    tvrename.py -n awesome.show.211.hdtv-grp.mp4
    (Not) Moving awesome.show.211.hdtv-grp.mp4 to S02E11.mp4
    
  • -c / --confirm – Asks before doing anything, for example:
    tvrename.py -c awesome.show.211.hdtv-grp.mp4
    Moving awesome.show.211.hdtv-grp.mp4 to S02E11.mp4
    OK? [Y/n/q]
    

License

tvrename is free software, available under the MIT license.

tvrename's People

Contributors

elliotth avatar

Watchers

 avatar

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.