Socket
Socket
Sign inDemoInstall

local-video-library

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

local-video-library

build your local library object with automagic metadata grabbing


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

local-video-library

Finds files in your local disk drives and populates each of them with metadata (from Trakt.tv).

Install

npm install local-video-library

Usage

console.time('test');

const traktId = <trakt.tv client_id>;
const paths = ['/foo/bar'];
const debug = true;

const Parser = require('local-video-library');
const library = new Parser(traktId, paths, debug);

library.scan(paths).then((localLibrary) => {
    console.log('results', localLibrary);
    console.timeEnd('test');
})

You can store localLibrary as you wish. To update without having to rescan everything and avoid making new calls to Trakt, use:

library.update(localLibrary).then(console.log);

License

The MIT license - Jean van Kasteel vankasteelj@gmail.com

FAQs

Package last updated on 21 May 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc