mpv: disable playback resumption for ~/Music files

This commit is contained in:
2024-11-25 12:55:32 +00:00
parent a84cf3dd90
commit 3bf4447ab1

View File

@@ -1,10 +1,12 @@
# options, profiles, etc:
# - example config: <https://thewiki.moe/tutorials/mpv/>
# - example config: <https://iamscum.wordpress.com/guides/videoplayback-guide/mpv-conf/>
# - available options and their defaults: `mpv --list-options`
# or `man mpv`
# - default profiles: <https://github.com/mpv-player/mpv/blob/master/etc/builtin.conf>
# or: `mpv --profile=help`
# or: `mpv --show-profile=high-quality` (etc)
# - available options and their defaults: `mpv --list-options`
# - about auto profiles: <https://mpv.io/manual/stable/#conditional-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 <repo:mpv-player/mpv:player/command.c>
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