8.0.2 • Published 4 years ago

trakt.tv-matcher v8.0.2

Weekly downloads
307
License
MIT
Repository
github
Last release
4 years ago

Trakt.tv Matcher

Extends https://github.com/vankasteelj/trakt.tv node module, in order to match a filename with trakt info. Works around mmmmh 98.5% of the time?

NOTICE: requires trakt.tv module! Load this plugin directly through trakt.tv module.

1) Install:

npm install trakt.tv trakt.tv-matcher

2) Load the plugin:

const Trakt = require('trakt.tv');
const trakt = new Trakt({
    client_id: '<your id>', // mandatory trakt id
    plugins: {
        matcher: require('trakt.tv-matcher')
    }
});

3) Call "matcher":

trakt.matcher.match({
    filename: 'My Awesome Film (2007).mp4',
    path: '/media/Home_Movies'
}).then(console.log);

There's also the possibility of passing a torrent's name (found in metadata, or as a magnet DN) in the options to increase chance of matching:

trakt.matcher.match({
    filename: 'My Friend's Awesome Short.avi',
    torrent: 'my.friend.short.thxguyg'
}).then(console.log);

License MIT, (c) vankasteelj

8.0.1

4 years ago

8.0.2

4 years ago

8.0.0

4 years ago

7.0.0

5 years ago

5.2.0

6 years ago

5.1.0

7 years ago

5.0.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago