Socket
Socket
Sign inDemoInstall

trakt.tv-matcher

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    trakt.tv-matcher

Plugin adding a matcher for trakt.tv module


Version published
Weekly downloads
239
increased by22.56%
Maintainers
1
Install size
27.8 kB
Created
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:
var Trakt = require('trakt.tv');
var trakt = new Trakt({
    client_id: '<your id>', // mandatory trakt id
    plugins: ['matcher'] // this loads the plugin
});
  1. Call "matcher":
trakt.matcher.match({
    filename: 'My Awesome Film (2007).mp4',
    path: '/media/Home_Movies'
}).then(function (result) {
    // contains complete metadata about the file
    console.log(result);
});

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(function (result) {
    console.log(result);
});

License MIT, (c) vankasteelj

Keywords

FAQs

Last updated on 05 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc