Skip to content

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

License

Tatsh/mpv-netrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mpv-netrc

LuaRocks GitHub tag (with filter) License GitHub commits since latest release (by SemVer including pre-releases) QA Tests Coverage Status GitHub Pages pre-commit Stargazers

@Tatsh Mastodon Follow

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

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

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •