Skip to content

Tatsh/mpv-netrc

Repository files navigation

mpv-netrc

Tests Coverage Status

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.

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:

    netrc-path=PATH_TO_NETRC
    
  • Run mpv with --script-opts=netrc=PATH_TO_NETRC.

A full path is recommended. Using ~ or ~~ may not work.