https://github.com/tatsh/mpv-netrc
An mpv plugin to read credentials from ~/.netrc.
https://github.com/tatsh/mpv-netrc
lua mpv mpv-script netrc
Last synced: 3 months ago
JSON representation
An mpv plugin to read credentials from ~/.netrc.
- Host: GitHub
- URL: https://github.com/tatsh/mpv-netrc
- Owner: Tatsh
- License: mit
- Created: 2022-05-09T08:23:44.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-16T15:06:30.000Z (over 1 year ago)
- Last Synced: 2025-02-17T03:55:19.342Z (3 months ago)
- Topics: lua, mpv, mpv-script, netrc
- Language: Lua
- Homepage: https://luarocks.org/modules/Tatsh/mpv-netrc
- Size: 42 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# mpv-netrc
[](https://github.com/Tatsh/mpv-netrc/actions/workflows/test.yml)
[](https://coveralls.io/github/Tatsh/mpv-netrc?branch=master)An mpv plugin to read usernames and passwords from `~/.netrc`. This script only supports netrc
entries that are on a single line.See _[The .netrc file](https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html)_.
## Installation
Place `netrc.lua` in a place where mpv will read for scripts, such as `~/.config/mpv/scripts` on Linux.
## Configuration
If reading from `~/.netrc` (the default), configuration is unnecessary.
To read from an alternative netrc file, do one of the following:
- Create a file named `${CONFIG_DIR}/script-opts/netrc.conf` and set the `netrc-path` key:
```plain
netrc-path=PATH_TO_NETRC
```- Run mpv with `--script-opts=netrc=PATH_TO_NETRC`.
A full path is recommended. Using `~` or `~~` may not work.