save only the playback position
This commit is contained in:
parent
4b8d5b2819
commit
8ab5688145
1 changed files with 7 additions and 1 deletions
6
strm
6
strm
|
|
@ -414,6 +414,12 @@ if [ "$list" == false ]; then
|
||||||
fi
|
fi
|
||||||
if [ "$playback_directory" != "" ]; then
|
if [ "$playback_directory" != "" ]; then
|
||||||
mpv_arguments+=("--save-position-on-quit")
|
mpv_arguments+=("--save-position-on-quit")
|
||||||
|
|
||||||
|
# Save only the playback position if mpv version is at least 0.34.0
|
||||||
|
[[ $(mpv --version | head -n 1) =~ [0-9]+.([0-9]+).[0-9]+ ]]
|
||||||
|
if [ ${BASH_REMATCH[1]} -ge 34 ]; then
|
||||||
|
mpv_arguments+=("--watch-later-options-clr")
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Play all remote files
|
# Play all remote files
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue