Giter Site home page Giter Site logo

series-renamer's Introduction

Series-Renamer

Series-Renamer will rename episodes of TV series on your computer with a defined clear and consistent style.

Example

Illegible titles will can be styled to follow either of the following formats:

  • {series title} {S}{season#}{E}{episode#}.{extension}
  • {series title} {S}{season#}{E}{episode#} {episode title}.{extension}

Examples:

  • some.series.title.s01e05.branding{1990}.x264.HDTV.mp4 => Some Series Title S01E05.mp4
  • some series title s01e05 episode title branding 1990 x264 HDTV.mp4 => Some Series Title S01E05 Episode Title.mp4

Usage

$ git clone https://github.com/at1as/series-renamer.git
$ go run /path/to/directory/renamer.go {flags}

Flags

-p, --path

  • Usage: path to folder containing files to be renamed
  • Default: "./"

-u, --unescape

  • Usage: whether to html unescape filename (ex. "Hello%20World" -> "Hello World")
  • Default: false

-k, --keep

  • Usage: whether to retain individual episode titles (see examples above)
  • Default: false

-c, --cut

  • Usage: text to cut from end of filename (branding, encoding details, etc)
  • Default: ""

See go run renamer.go --help for details

The terminal output will show you what has been performed

Examples

$ go run renamer.go -p ~/Movies/ -u -k -c "720p"
$ go run renamer.go
$ go run renamer.go --path /Users/johndoe/vids/

Limitations

  • Won't work is season and episode are dot-separated (ex., 'S01.E05')
  • Does not recurse directories

Cowardly Disclaimer

  • Will rename files (for which there is no Edit/Undo)
    • Ensure video files are in their own folder
    • Currently the script is stateless and there is no rollback for changes

TODO

  • Add '-i' flag to ignore filetypes (like '.srt') or substrings (like '(Dutch).srt')

series-renamer's People

Contributors

at1as avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  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.