Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

trakt.tv-matcher

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Issues
File Explorer

Advanced tools

trakt.tv-matcher

Plugin adding a matcher for trakt.tv module

    8.0.2latest

Version published
Maintainers
1
Yearly downloads
20,877
increased by8.05%

Weekly downloads

Readme

Source

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

  1. 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') } });
  1. 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

Keywords

Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc