parse-torrent-name
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
- widescreen
- year
Install:
$ npm install parse-torrent-name
Usage:
var ptn = ; ;/*{ season: 5, episode: 2, resolution: '720p', quality: 'HDTV', codec: 'x264', group: 'KILLERS[rartv]', title: 'The Staying Alive' }*/ ;/*{ year: 2014, resolution: '1080p', quality: 'BrRip', codec: 'x264', group: 'YIFY', title: 'Captain Russia The Summer Soldier' }*/ ;/*{ year: 2014, quality: 'HDRip', codec: 'XViD', audio: 'AC3', group: 'juggs[ETRG]', hardcoded: true, title: 'AL 288-1' }*/