diff --git a/peertube-cli.sh b/peertube-cli.sh index 8f3b9af..ae61e46 100755 --- a/peertube-cli.sh +++ b/peertube-cli.sh @@ -7,7 +7,8 @@ torrent_enabled=$(jj -i $workdir/config.json torrent_enabled) rpcport=9095 instance_hist="$workdir/instance.hist" ordering='title' -default_player_command='mpv --hwdec --network-timeout=30 --profile=low-latency' +tempvideostor=$(mktemp -d) +default_player_command="mpv --hwdec --network-timeout=30 --profile=low-latency --cache=yes --cache-on-disk=yes --cache-dir=$tempvideostor --cache-unlink-files=immediate" mkdir -p $workdir if [ ! -f "$workdir/config.json" ]; then