@jose.conde/submarine

0.4.0 • Public • Published

SubMarine SubMarine

v0.4.0

Is not just another subtitle downloader, SubMarine intends to provide a common interface to download subtitles from different sources.

Experimental. Search for media file metadata from different sources (OMDB, TMDb, TVMaze) and search for the best matched subtitles in different subtitles databases.

Installing client

npm i @jose.conde/submarine -g

Configurind Api Tokens

npm add-token

Adding an API token

$ node submarine add-token
? Enter Api ID (ex. tmdb): omdb
? Enter token: asdasdasd8989adJJss
? Enter query param name: apiKey
? Do you want to enter antoher key/value pair additional info? No

Configurind Credentials

npm add-origin

Adding opensubtitle credentials

$ node submarine add-origin
? Enter organization name (ex. ´opensubtitles.org´): opensubtitles.org
? Enter username: your@email.com
? Enter password: [hidden]
? Enter password again: [hidden]
? Do you want to enter antoher key/value pair additional info? Yes
? Enter value/key pairs comma separated (ex. ´key=value,key2=value2´): lang=es,agent=TemporaryUserAgent

Search

Usage: submarine search|s [options]

  Search

  Options:

    -p --path <path>         Path where media files are.
    -r --recursive           Search for media files recursively
    -t --text <string>       Search by filename (string).
    -d --destination <path>  Destination path
    -s --strict              Override strict strategy if subtitle file exists don't override.
    -o --override            Override default strategy if subtitle file exists replace it.
    -i --incremental         Override incrementa strategy if subtitle file exists saves it with incremental suffix.
    -h, --help               output usage information

Example: submarine search -p /home/pepe/downloads

Bulk search

Usage: submarine bulk|b [options]

  Options:

    -p --path <path>         Path where media files are.
    -r --recursive           Search for media files recursively
    -d --destination <path>
    -s --strict              Override strict strategy if subtitle file exists don't override.
    -o --override            Override default strategy if subtitle file exists replace it.
    -i --incremental         Override incrementa strategy if subtitle file exists saves it with incremental suffix.
    -h, --help               output usage information

Example: submarine bulk -p /home/pepe/downloads -r

Readme

Keywords

none

Package Sidebar

Install

npm i @jose.conde/submarine

Weekly Downloads

1

Version

0.4.0

License

ISC

Unpacked Size

121 kB

Total Files

54

Last publish

Collaborators

  • jose.conde