Starting from a top level directory, this module indexes all video files and searches for subtitles for all of them - using the subtitler module. Any match is stored alongside the video file as a `.srt`-file.

If the file already has a matching .srt-file, it will be ignored. 

If no matches are found, it will be added to a blacklist. Files on the blacklist will not be checked again unless the `--clean` flag is supplied. The blacklist only applies for cli, although an ignorelist can be supplied to the api.

## Installation

```
npm install deep-titler
```

## API Usage

```javascript
var deeptitler = require("deep-titler");

deeptitler.run("./", ["/ignore/this/movie.mp4"]).then(function(result) {
	// result is an object: { ignored: [], blacklisted: [], successful: [] }
});
```

## CLI usage

Install using:

```
npm install -g deep-titler
```

Then run:

```
deep-titler [path] [--clean]
```

## Notes

* Supports English only (this will change shortly).
* The opensubtitles API only allows 200 downloads from one client per day. In my experience, this means actual downloads. Merely checking for subtitle existence does not count against the quota.