Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

imdb-sort

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imdb-sort

Sort videos files using an IMDB API lookup

Source
npmnpm
Version
0.0.9
Version published
Weekly downloads
37
19.35%
Maintainers
1
Weekly downloads
 
Created
Source

node-imdb-sort

Sort files based on IMDB data

Usage

  • npm install -g imdb-sort

  • cd my-messy-movie-folder

  • imdb-sort

Note: On first run a setup wizard will run prompting you to create the configuration file below. Default location is ~/.imdb-sort/config.json

Help Output

Organises Movies and TV Shows using IMDB
Usage: imdb-sort [options]

Options:
  -c, --config     Path to 'imdb-sort.json' configuration file        [default: "/Volumes/jpillora/.imdb-sort/config.json"]
  -d, --directory  The directory to scan                              [default: "/Volumes/jpillora/Code/Node/node-imdb-sort"]
  -r, --recursive  Recursive depth (default: current directory)       [default: 1]
  -f, --filter     Process filepaths matching this regular expression
  -w, --watch      Watch directory for changes                        
  -p, --preview    Dry run only (will not move any files)
  -s, --setup      Setup wizard to create or edit the config

*Note: If you specific -r without a depth; 3 will be used.

Configuration

Here is my generated config.json using default settings

{
  "replaceExisting": false,
  "tvshows": {
    "root": "/Volumes/jpillora/Movies/TV Shows",
    "fileName": "{{ Title }} - Season {{ Season }} Episode {{ Episode }}",
    "directoryPerShow": true,
    "showName": "{{ Title }}",
    "directoryPerSeason": false,
    "seasonName": "Season {{ Season }}"
  },
  "movies": {
    "root": "/Volumes/jpillora/Movies/Movies",
    "fileName": "{{ Title }} ({{ Year }})"
  }
}

Naming Files and Directories

Inside your configuration, fileName, showName and seasonName can be used to customise your naming styles.

Usable template keys are: Title,Year,Season,Episode,Rated,Released,Runtime,Genre,Director,Writer,Actors,Plot,Poster,imdbRating,imdbVotes,imdbID,Type

Known Issues

  • It is possible to get temporarily blocked by Google for sending too many requests.
  • imdb-sort decides if a file is TV series or Movie depending on whether it can find season and episode numbers. Please post an issue if a TV series file is found to be a movie.

Todo

  • Modify metadata
  • Episode names
  • Lazy match on subtitles file

Contributing

The source is CoffeeScript

  • Get deps with npm install
  • Compile with npm start
  • For testing, make a symbolic link with ln -s ./bin/imdb-sort [a-folder-in-your-PATH]

FAQs

Package last updated on 12 May 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts