GithubHelp home page GithubHelp logo

cinephile's Introduction

cinephile

Python CLI tool to scan movie directory recursively, normalize the filename and retrieve useful information from imdb. Cinephile can also be used to fetch subtitle file for a particular movie in preferred language. See instructions below on how to use the tool.

Features

  • Filename normalization
  • Yaml config for customization
  • Filter based on imdb rating alone or along with genre
  • Ignore duplicate movie names
  • Download subtitles for a movie file in preferred language

Installation

Please read INSTALL

Configuration

After installation the config file .cinephile.yaml can be found under user's home directory.

Usage

To get IMDB info

cinephile movie -s movie_dir -r imdb_rating [-g genre]

To download subtitles

cinephile subtitle -f movie_file -l language

Example

cinephile movie -s /media/disk/movies -r 7
cinephile movie -s /media/disk/movies -r 7 -g action
cinephile subtitle -f ~/Movies/The\ Croods\ \(2013\)/The.Croods.2013.720p.BluRay.x264.YIFY.mp4 -l en

Output Sample

semk@gerty ~ $ cinephile movie -s ~/Movies -r 8
Title       : Grave of the Fireflies
imdbRating  : 8.5
Genre       : Animation, Drama, War
Released    : 16 Apr 1988
Actors      : Tsutomu Tatsumi, Ayano Shiraishi, Yoshiko Shinohara, Akemi Yamaguchi
Director    : Isao Takahata
Runtime     : 89 min
Rated       : Unrated
Plot        : A tragic film covering a young boy and his little sister's struggle to
survive in Japan during World War II.
File path   : /Users/sreejitk/Movies/Grave of the Fireflies (1988) 720p BRRiP x264 \
AAC-AMEET6233 (T.M.R.G)/Grave of the Fireflies (1988) 720p BRRiP x264 AAC-AMEET6233 (T.M.R.G).mp4


Title       : Memento
imdbRating  : 8.6
Genre       : Mystery, Thriller
Released    : 11 Oct 2000
Actors      : Guy Pearce, Carrie-Anne Moss, Joe Pantoliano, Mark Boone Junior
Director    : Christopher Nolan
Runtime     : 113 min
Rated       : R
Plot        : A man, suffering from short-term memory loss, uses notes and tattoos to
hunt for the man he thinks killed his wife.
File path   : /Users/sreejitk/Movies/Memento (2000)/Memento.2000.720p.BluRay.x264.YIFY.mp4

Todo

Add IMDB fuzzy search (optional) and select functionality. For example,

semk@gerty ~ $ cinephile movie -s ~/Movies/The\ Hunger\ Games\ Catching\ Fire\ \(2013\) -r 4 --fuzzy
1.  Title: The Hunger Games (Year:2012)
2.  Title: The Hunger Games: Catching Fire (Year:2013)
3.  Title: The World Is Watching: Making the Hunger Games (Year:2012)
4.  Title: Hunger Games: Katniss & Rue (Year:2010)
5.  Title: The Hunger Games: Poseidon's Son (Year:2012)
6.  Title: The Hunger Games Johanna Mason Fan Film (Year:2011)
7.  Title: The 47th Hunger Games (Year:2012)
8.  Title: Hunger Games (Year:2012)
9.  Title: The Hunger Games: A Reenactment - Part 1 (Year:2013)
10. Title: Hunger Games: The Second Quarter Quell (Year:2011)

Select the movie (Number) : 2

Title       : The Hunger Games: Catching Fire
imdbRating  : 8.0
Genre       : Action, Adventure, Sci-Fi
Released    : 22 Nov 2013
Actors      : Jennifer Lawrence, Liam Hemsworth, Jack Quaid, Taylor St. Clair
Director    : Francis Lawrence
Runtime     : 146 min
Rated       : PG-13
Plot        : Katniss Everdeen and Peeta Mellark become targets of the Capitol after their victory in the 74th
Hunger Games sparks a rebellion in the Districts of Panem.
File path   : /Users/sreejitk/Movies/The Hunger Games Catching Fire(2013)/The.Hunger.Games.Catching.Fire.2013.\
720p.BluRay.x264.YIFY.mp4

cinephile's People

Contributors

navinsylvester avatar semk avatar

Watchers

 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.