0.0.1 • Published 7 years ago

guessit-exec v0.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

Guessit-exec

Description

Guessit exec is a simple method that allow you to call the python binary of guessit v2 in nodeJS

Requirements

You must install guessit v2 before using this script

Usage

  const guessit = require('guessit-exec');
  
  guessit('South.Park.s01.e01.720.mkv')
    .then((data) => {
      console.log(data);
    })
    .catch((e) => {
      console.log(e);
    });

Prototype

Promise guessit(String filename, Object options)

Guessit method return an es6 promise.

Options Object

Field nameValue allowedGuessit Parameter
typestring--type
configstring--config
nameOnlyboolean--name-only
dateYearFirstboolean--date-year-first
dateDayFirstboolean--date-day-first
allowedLanguagesarray-L
allowedCountriesarray-C
episodePreferNumberboolean-E
expectedTitlestring-T
expectedGroupstring-G
advancedboolean-a

For more information about guessit parameter, go to Guessit Documentation