Skip to content

Persist certain properties to the directory-specific configuration file.

Notifications You must be signed in to change notification settings

pacexy/mpv-persist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mpv-persist

Persist certain properties to the directory-specific configuration file.

Installation

  1. Download persist.lua.
  2. Place it in the scripts directory of your mpv installation.

For more details, see Script location - mpv.io.

Configuration

  1. Download persist.conf.
  2. Place it in the script-opts directory of your mpv installation.

For more details, see mp.options functions - mpv.io.

props

The props option contains the list of properties to be persisted.

By default, the following properties are persisted:

  • volume
  • sid
  • sub-delay
  • secondary-sid
  • secondary-sub-delay

How it works

  1. Observes property changes.
  2. Persists these properties.
  3. Loads them on the file-loaded event, which is necessary to prevent unexpected property resets.

References

About

Persist certain properties to the directory-specific configuration file.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages