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.
Place netrc.lua in a place where mpv will read for scripts, such as ~/.config/mpv/scripts on Linux.
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.confand set thenetrc-pathkey:netrc-path=PATH_TO_NETRC -
Run mpv with
--script-opts=netrc=PATH_TO_NETRC.
A full path is recommended. Using ~ or ~~ may not work.