torrent-name-parser
Parses torrent name of a movie or TV show.
Possible parts extracted:
- audio
- codec
- container
- episode
- episodeName
- excess
- extended
- garbage
- group
- hardcoded
- language
- proper
- quality
- region
- repack
- resolution
- season
- title
- website
- year
Install:
$ npm install torrent-name-parser
Usage:
var tnp = ; ;/*{ year: 2014, resolution: '1080p', quality: 'BrRip', codec: 'x264', group: 'YIFY', title: 'Captain Russia The Summer Soldier' }*/ ;/*{ season: 5, episode: 2, resolution: '720p', quality: 'HDTV', codec: 'x264', group: 'KILLERS', title: 'The Staying Alive' }*/ /* You can also add custom regex if you want more or different extraction The part type is optional. Default is the matching string */ tnp
Test
Simply run
$ node test.js