mirror of
https://github.com/ksyasuda/mpv-youtube-queue.git
synced 2025-12-05 02:53:38 -08:00
dfdbe42b3342749e7c4e796af6b1ab42b0ff7215
mpv-youtube-queue
A Lua script for mpv that allows you to add YouTube videos to a queue, navigate through the queue, and select a video to play.
Features
- Add YouTube videos to a queue from the clipboard
- Select a video from the queue to play from an interactive menu, or navigate through the queue with keybinds
- Open the URL of the currently playing video in a new browser tab.
- Fetch and display the names of YouTube videos.
- Print the current contents of the queue
Notes
- This script uses the Linux
xcliputility to read from the clipboard. If you're on macOS or Windows, you'll need to adjust the setting inmpv-youtube-queue.confas described in the install section. - When adding videos to the queue, the script fetches the video name using
yt-dlp. Ensure you haveyt-dlpinstalled and in your PATH. - The script maintains its own queue separate from mpv's internal playlist. This means that loading files manually or using the next/previous buttons on the mpv OSC will not affect the queue.
Requirements
This script requires the following software to be installed on the system
Installation
- Copy the
mpv-youtube-queue.luascript to your~~/scriptsdirectory - Optionally copy the
mpv-youtube-queue.confto the~~/script-optsdirectory to customize the keybindings
License
This project is licensed under the terms of the GPLv3 license.
Languages
Lua
100%
