enable cache-on-disk, because large media can make cache overflow in RAM and can't load more than 30-60 mins

This commit is contained in:
localhost_frssoft 2023-10-11 14:50:58 +03:00
parent a705f79547
commit 028b3c8387
1 changed files with 2 additions and 1 deletions

View File

@ -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