Skip to content

Commit

Permalink
added missing commandline blocklist parsing for blocklist support
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed May 16, 2014
1 parent 196d9ee commit 976fd11
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ function usage () {
console.log(' -l, --list list available files in torrent')
console.log(' -n, --no-quit do not quit peerflix on vlc exit')
console.log(' -r, --remove remove any downloaded files on exit')
console.log(' -b, --blocklist use the specified blocklist')
console.log(' -t, --subtitles load subtitles file')
console.log(' -h, --help display this help message')
console.log(' -q, --quiet silence stdout')
Expand All @@ -50,6 +51,7 @@ var list = argv.list || argv.l
var subtitles = argv.subtitles || argv.t
var quiet = argv.quiet || argv.q
var noquit = argv.n || argv['no-quit']
var blocklist = argv.blocklist || argv.b

if (argv.help || argv.h) {
usage()
Expand Down Expand Up @@ -81,7 +83,8 @@ if (subtitles) {

var client = new WebTorrent({
list: list,
quiet: true
quiet: true,
blocklist: blocklist
})

var started = Date.now()
Expand Down

0 comments on commit 976fd11

Please sign in to comment.