From 3bf4447ab1b2994edd653e356a30a584e16d782c Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 25 Nov 2024 12:55:32 +0000 Subject: [PATCH] mpv: disable playback resumption for ~/Music files --- hosts/common/programs/mpv/mpv.conf | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hosts/common/programs/mpv/mpv.conf b/hosts/common/programs/mpv/mpv.conf index 070afa282..5d75d5fb9 100644 --- a/hosts/common/programs/mpv/mpv.conf +++ b/hosts/common/programs/mpv/mpv.conf @@ -1,10 +1,12 @@ # options, profiles, etc: # - example config: # - example config: +# - available options and their defaults: `mpv --list-options` +# or `man mpv` # - default profiles: # or: `mpv --profile=help` # or: `mpv --show-profile=high-quality` (etc) -# - available options and their defaults: `mpv --list-options` +# - about auto profiles: # write ~/.local/state/mpv/watch_later on exit, to allow resume save-position-on-quit=yes @@ -123,3 +125,11 @@ deband=no # `p["audio-codec"]` parameter can be found in profile-cond=p["audio-codec"] image-display-duration=2 + +[music] +# never resume music files (but still resume other audio files e.g. podcasts) +profile-cond=path:find('Music/') +watch-later-options-remove=start +# XXX(2024/11/25): resume-playback option is processed early -- before auto-profiles are fully evaluated, +# but watch-later-options-remove=... or save-position-on-quit=... are processed later +# resume-playback=no