ItzBlitz98 / torrentflix

Nodejs cli app to search torrent sites and stream using peerflix
MIT License
347 stars 60 forks source link

Arguments handling in config #62

Closed oomathias closed 5 years ago

oomathias commented 8 years ago

I want to open peerflix with peerflix mymagnet --vlc -r -d -- -f

Right now it looks like it's impossible. peerflix_player_arg is not working because it's not the last one in the chain (peerflix_port is after) and-f should produce -- -f.

It may be a lot simpler to use only one config option with all the arguments inside as an array, instead of using peerflix_player, peerflix_player_args, peerflix_port, .... Peerflix is well documented, no need re-code every parameter. peerflix_args: ['--ports=8080','-r', '-d', '--', '-f']

Also, it would be nice to add --engine and --limit default config options. -s is quite useless, it would be simpler to use it like torrentflix search [options]

At the end, the UX would be torrentflix MyMovie, select a torrent, done.