1.0.0 • Published 8 years ago

bravia-subtitles v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

Why

My Sony Bravia KDL TV had issues when working with (polish) subtitles downloaded from opensubtitles, which were usually encoded with windows-1250 encoding, and had additional subrip/microDVD text formatting information. It only seemed reasonable to write a nodejs util to make it work properly.

Usage

bsub [options] <file>

Available options

  • --lang <lang> - specify subtitles language to search from (eng|pol|...) (defaults to eng) available languages
  • --count <number> - how many of the available subtitles should be downloaded (defaults to 5)

Example

bsub --lang pol --count 2 The.Knick.S02E01.HDTV.x264-KILLERS[ettv].mp4 will download 2 top first subtitle files matched for the file

How it works

  • download subtitles with the neat subtitler
  • change the encoding to utf-8 with iconv
  • remove all the crap which is badly handled