2.6.0 • Published 3 years ago
@eankeen/cliflix v2.6.0
cliflix
Watch any media instantaneously.
Cliflix searches for torrent and streams the resulting magent using WebTorrent to your favorite app. Inspired from Fabio Spampinato's CLIFlix
Warning: If you don't know what a torrent is, or are unsure about the legality of the torrents you're downloading you shouldn't use
cliflix
.
Install
$ npm install -g @eankeen/cliflix
Usage
Wizard
Execute cliflix
to run a wizard, and prompt for movie, torrent, subtitles, and app you wish to open
To skip past repetitive prompts, add options:
cliflix --torrentProvider 1337x --moviePlayer VLC --subtitleLanguage English
Alternatively, add them to the config located at "${XDG_CONFIG_HOME:-$HOME/.config}"/cliflix/cliflix.json
file. All keys within ./src/config.ts
are configurable
{
"torrentProvider": "1337x",
"moviePlayer": "VLC",
"subtitleLanguage": "English",
"saveMedia": true,
"skipNoSubtitles": true,
"torrentListLength": 30,
"downloadDir": "~/Dls",
"webtorrentOptions": ["--no-quit"]
}
Possible Improvements
- Clean up error / warning messages
- print errors in debug / dev mode
- Bug: sigint during webtorrent stream prints messy error
- choose which torrent to get in doWizard mode
- share code to validate output after any 'prompt' selection (empty object)