Git Product home page Git Product logo

otr-file-rename-for-tv-shows's Introduction

OTR file rename for tv-shows

Extract all information from the (decoded) otrkey file name (onlinetvrecorder.com) and use the website fernsehserien.de to rename the file with the episode and season info

Install

Prerequisites

You need Python and the extension Beautiful Soup 4 installed.

For Beautiful Soup on Windows:

Download easy_setup (https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py)

$ python ez_setup.oy
$ easy_install BeautifulSoup4

USAGE

Just get information


$ python otr_rename.py otrkey-filename

Example:

$ python otr_rename.py The_Big_Bang_Theory_13.09.02_21-10_pro7_30_TVOON_DE.mpg.otrkey
> The Big Bang Theory.S1E15.Spoileralarm!.otrkey

RENAME AND MOVE ALL AVI FILES in the current folder:


$ python move_batch.py

This will create a new folder for each tv-show and rename the file respectively. Also a log.txt file will be created

For a folder somewhere else use:

$ python move_batch.py /volume1/folder_with_avi_files/

Example output:

2014-1-26 23:34 : input  The_Blacklist_14.01.21_20-15_rtl_55_TVOON_DE.avi
2014-1-26 23:34 : output The Blacklist/The Blacklist.S1E01.Raymond Reddingtons schwarze Liste.avi

2014-1-26 23:34 : input  The_Blacklist_14.01.21_21-10_rtl_55_TVOON_DE.avi
2014-1-26 23:34 : output The Blacklist/The Blacklist.S1E02.Der Freelancer (Nr. 145).avi

2014-1-30 19:51 : input  Die_Simpsons_14.01.27_20-15_pro7_30_TVOON_DE.avi
2014-1-30 19:51 : output Die Simpsons/Die Simpsons.S24E15.Blauauge sei wachsam.avi

2014-1-30 19:51 : input  Revolution__Happy_Endings_14.01.29_20-00_uswnbc_60_TVOON_DE.avi
2014-1-30 19:51 : output Revolution/Revolution.S2E13.Happy Endings.avi

2014-1-30 19:51 : input  The_Originals__Dance_Back_From_the_Grave_14.01.28_20-00_uswpix_60_TVOON_DE.avi
2014-1-30 19:51 : output The Originals/The Originals.S1E12.Dance Back From The Dead.avi

Info / Disclaimer

This project started as a personal project. It is just for educational purposes and private usage without any warranty or liability.

otr-file-rename-for-tv-shows's People

Contributors

abego avatar gcurse avatar jensb89 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

otr-file-rename-for-tv-shows's Issues

Allow absolute path

For now, only files inside the directory of the scripts are allowed....
The GUI also isn't working with files outside the current folder...

Replace whitespace with underscore

otr_rename.py creates names with whitespaces which is quite a pain in the ass on the linux command-line. Please use underscores instead.

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.