mpv-netrc

A Lua plugin for mpv that uses .netrc files to authenticate media URIs.

View on GitHub

mpv-netrc

Lua GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) QA Dependabot GitHub Pages Stargazers pre-commit Prettier

@Tatsh Buy Me A Coffee Libera.Chat Mastodon Follow Patreon

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:

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