Allow playing multiple files
This commit is contained in:
parent
5adbcd38be
commit
50897ae465
6
play.sh
6
play.sh
@ -1,9 +1,11 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
PLAYDIR=/tmp/beets_play
|
PLAYDIR="${PLAYDIR:-/tmp/beets_play}"
|
||||||
mkdir -p "$PLAYDIR"
|
mkdir -p "$PLAYDIR"
|
||||||
cp "$1" "$PLAYDIR/$(basename "$1")"
|
|
||||||
cp "$1" "$PLAYDIR/play"
|
cp "$1" "$PLAYDIR/play"
|
||||||
|
for f in "$@"; do
|
||||||
|
cp "$f" "$PLAYDIR/$(basename "$f")"
|
||||||
|
done
|
||||||
caddy file-server --listen :9999 --browse --root "$PLAYDIR"
|
caddy file-server --listen :9999 --browse --root "$PLAYDIR"
|
||||||
rm "$PLAYDIR"/*
|
rm "$PLAYDIR"/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user