Skip to content

Commit

Permalink
Pass additional btplay args to btfs
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed Jan 10, 2016
1 parent 2c1d5e7 commit 879309e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/btplay
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import sys, os, os.path, tempfile, subprocess, time, shutil

if len(sys.argv) < 2:
print >> sys.stderr, "usage: btplay URI"
print >> sys.stderr, "usage: btplay URI [btfs options]"
sys.exit(1)

def files(p, d):
Expand All @@ -31,7 +31,7 @@ playlist = os.path.join(d, "playlist.m3u")

os.mkdir(mountpoint)

ret = subprocess.call(("btfs", sys.argv[1], mountpoint, ))
ret = subprocess.call(["btfs", sys.argv[1], mountpoint, ] + sys.argv[1:])

if ret == 0:
try:
Expand Down

0 comments on commit 879309e

Please sign in to comment.