Skip to content

A userscript for MPV that allows you to play "up next"/recommended youtube videos

License

Notifications You must be signed in to change notification settings

Admicos/mpv-youtube-upnext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

youtube-upnext

A userscript for MPV that allows you to load the up next/recommened youtube video on the fly, as though you were using the web player.

screenshot

Toggle the menu with ctrl+u (configurable). Select from the list with the arrow keys (configurable), and press enter (configurable) to select. Menu times out after 10 seconds (configurable.)

Installation

Copy youtube-upnext.lua into your scripts directory, e.g.:

cp youtube-upnext.lua ~/.config/mpv/scripts/

optional, copy the config file:

cp youtube-upnext.conf ~/.config/mpv/script-opts/

Windows:

The location of the scripts directory on Windows is %APPDATA%\mpv\scripts e.g. C:\Users\cvzi\AppData\Roaming\mpv\scripts

Make sure you have GNU Wget installed. There are several websites that offer a binary release of wget for Windows e.g. here, it is also included in MingW and similar tools.

If you downloaded/installed the wget executable, you have to add the directory of the wget.exe toyour machine's %PATH.

Depending on your setup you may have to set check_certificate = false in the lua script or in the config file, because some wget versions on Windows seem to have problems with HTTPS/SSL certificates.

Credit

  • reload.lua, for the function to reload a video while preserving the playlist.
  • mpv-playlistmanager, from which I ripped off much of the menu formatting config.
  • ytdl_hook.lua, from which I ripped off much of the youtube-dl code to fetch the format list
  • somebody on /mpv/ for the idea

About

A userscript for MPV that allows you to play "up next"/recommended youtube videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%