Tatsh / mpv-netrc

An mpv plugin to read credentials from ~/.netrc.

Home Page:https://luarocks.org/modules/Tatsh/mpv-netrc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

An mpv plugin to read credentials from ~/.netrc.

https://luarocks.org/modules/Tatsh/mpv-netrc

License:MIT License


Languages

Language:Lua 100.0%