1.3.0 • Published 4 years ago

local-video-library v1.3.0

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

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