A Lua script that replicates and extends the YouTube "Add to Queue" feature for mpv
This script requires the following software to be installed on the system
Get-Clipboard
from powershell by setting the clipboard_command
in mpv-youtube-queue.conf
file to the following: clipboard_command=powershell -command Get-Clipboard
mpv-youtube-queue.lua
script to your ~~/scripts
directory
~/.config/mpv/scripts
on Linux%APPDATA%\mpv\scripts
on Windowsmpv-youtube-queue.conf
to the ~~/script-opts
directory
~/.config/mpv/script-opts
on Linux%APPDATA%\mpv\script-opts
on Windows to customize the script configuration as described in the next sectionadd_to_queue - ctrl+a
: Add a video in the clipboard to the queuedownload_current_video - ctrl+d
: Download the currently playing videodownload_selected_video - ctrl+D
: Download the currently selected video in the queuemove_cursor_down - ctrl+j
: Move the cursor down one row in the queuemove_cursor_up - ctrl+k
- Move the cursor up one row in the queueload_queue - ctrl+l
- Appends the videos from the most recent save point to the queuemove_video - ctrl+m
: Mark/move the selected video in the queueplay_next_in_queue - ctrl+n
: Play the next video in the queueopen_video_in_browser - ctrl+o
: Open the currently playing video in the browseropen_channel_in_browser - ctrl+O
: Open the channel page for the currently playing video in the browserplay_previous_in_queue - ctrl+p
: Play the previous video in the queueprint_current_video - ctrl+P
: Print the name and channel of the currently playing video to the OSDprint_queue - ctrl+q
: Print the contents of the queue to the OSDsave_queue - ctrl+s
: Saves the queue using the chosen method in default_save_method
save_queue_alt - ctrl+S
: Saves the queue using the method not chosen in default_save_method
remove_from_queue - ctrl+x
: Remove the currently selected video from the queueplay_selected_video - ctrl+ENTER
: Play the currently selected video in the queuedefault_save_method - unwatched
: The default method to use when saving the queue. Valid options are unwatched
or all
. Defaults to unwatched
save_queue
binding, and the other method will be bound to save_queue_alt
browser - firefox
: The browser to use when opening a video or channel pageclipboard_command - xclip -o
: The command to use to get the contents of the clipboardcursor_icon - ➤
: The icon to use for the cursordisplay_limit - 10
: The maximum amount of videos to show on the OSD at oncedownload_directory - ~/videos/YouTube
: The directory to use when downloading a videodownload_quality 720p
: The maximum download qualitydownloader - curl
: The name of the program to use to download the videofont_name - JetBrains Mono
: The name of the font to usefont_size - 12
: Size of the fontmarked_icon - ⇅
: The icon to use to mark a video as ready to be moved in the queuemenu_timeout - 5
: The number of seconds until the menu times outshow_errors - yes
: Show error messages on the OSDytdlp_file_format - mp4
: The preferred file format for downloaded videosytdlp_output_template - %(uploader)s/%(title)s.%(ext)s
: The yt-dlp output template string
download_directory
is: ~/videos/YouTube/<uploader>/<title>.<ext>
use_history_db - no
: Enable watch history tracking and remote video queuing through integration with mpv-youtube-queue-serverbackend_host
: ip or hostname of the backend serverbackend_port
: port to connect to for the backend serverThis project is licensed under the terms of the GPLv3 license.
AboutYouTube 'Add to Queue' for MPV
Topics Resources License Stars Watchers ForksYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4