{"id":26255531,"url":"https://github.com/pacexy/mpv-persist","last_synced_at":"2026-04-22T18:32:03.112Z","repository":{"id":267612011,"uuid":"897089597","full_name":"pacexy/mpv-persist","owner":"pacexy","description":"Persist certain properties to the directory-specific configuration file.","archived":false,"fork":false,"pushed_at":"2024-12-17T23:42:38.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-10T10:14:22.448Z","etag":null,"topics":["mpv","mpv-script"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pacexy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["pacexy"]}},"created_at":"2024-12-02T02:14:11.000Z","updated_at":"2024-12-17T23:42:41.000Z","dependencies_parsed_at":"2024-12-11T11:46:22.562Z","dependency_job_id":null,"html_url":"https://github.com/pacexy/mpv-persist","commit_stats":null,"previous_names":["pacexy/mpv-persist"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/pacexy/mpv-persist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fmpv-persist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fmpv-persist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fmpv-persist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fmpv-persist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pacexy","download_url":"https://codeload.github.com/pacexy/mpv-persist/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pacexy%2Fmpv-persist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32149425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mpv","mpv-script"],"created_at":"2025-03-13T19:19:31.678Z","updated_at":"2026-04-22T18:32:03.094Z","avatar_url":"https://github.com/pacexy.png","language":"Lua","funding_links":["https://github.com/sponsors/pacexy"],"categories":[],"sub_categories":[],"readme":"# mpv-persist\n\nPersist certain properties to the [directory-specific configuration file](https://mpv.io/manual/stable/#file-specific-configuration-files).\n\n## Installation\n\n1. Download `persist.lua`.\n2. Place it in the `scripts` directory of your mpv installation.\n\nFor more details, see [Script location - mpv.io](https://mpv.io/manual/stable/#script-location).\n\n## Configuration\n\n1. Download `persist.conf`.\n2. Place it in the `script-opts` directory of your mpv installation.\n\nFor more details, see [`mp.options` functions - mpv.io](https://mpv.io/manual/stable/#mp-options-functions).\n\n### `props`\n\nThe `props` option contains the list of properties to be persisted.\n\nBy default, the following properties are persisted:\n\n- `volume`\n- `sid`\n- `sub-delay`\n- `secondary-sid`\n- `secondary-sub-delay`\n\n### How it works\n\n1. Observes property changes.\n2. Persists these properties.\n3. Loads them on the `file-loaded` event, which is necessary to prevent [unexpected property resets](https://github.com/mpv-player/mpv/issues/13670).\n\n## References\n\n- [File-specific Configuration Files - mpv.io](https://mpv.io/manual/stable/#file-specific-configuration-files)\n- [`reset-on-next-file` - mpv.io](https://mpv.io/manual/stable/#options-reset-on-next-file)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacexy%2Fmpv-persist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacexy%2Fmpv-persist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacexy%2Fmpv-persist/lists"}