srt-downloader
v1.1.1
Published
Subtitles downloader tool
Downloads
9
Maintainers
Readme
SRT Downloader
A NodeJS CLI app to download subtitles for every media files in a directory. Subtitles are downloaded from opensubtitles.com.
How it works
- The app is looking for every media files and subtitles in directory and subdirectories.
- For every detected media file, the app checks for missing subtitle languages
- The missing subtitle languages are researched on opensubtitles
- The subtitles are downloaded and placed next to the media files
Prerequisites
- ffmpeg (or at least ffprobe) must be installed on your system
- OpenSubtitles.com account
- OpenSubtitles.com consumer API key (you can create one here)
Usage
npx srt-downloader -a <apiKey> -u <username> -p <password>
| Flags | Required | Description | Default | |-------|----------|-----------------------------|-------------------| | -a | Yes | OpenSubtitles ApiKey | - | | -u | Yes | OpenSubtitles username | - | | -p | Yes | OpenSubtitles password | - | | -d | No | Media files directory | Current directory | | -l | No | Languages (comma separated) | en |
Todo
- Multiple subtitles providers
- Start by searching by media hash and fallback on media name search