@mpv-easy/youtube
v0.1.15-alpha.20
Published
@mpv-easy/youtube
Readme
@mpv-easy/youtube
YouTube plugin for mpv-easy. It provides a visual grid of YouTube videos that you can browse and play directly within mpv.
https://github.com/user-attachments/assets/a7b266c3-89e9-4467-b043-c04978077bef
Features
- Visual Grid: Displays YouTube videos with thumbnails.
- Interactive Sidebar: Easy access to common actions:
- YouTube Home: Open YouTube in your browser.
- Refresh: Fetch new recommendations.
- Shuffle: Randomize the current list of videos.
- Pin/Unpin: Toggle sidebar visibility.
- Customizable Layout: Configure the number of columns and rows.
- Authentic Experience: Support for
cookies.txtto show personalized recommendations.
Requirements
- yt-dlp: Used to fetch recommendation data.
- ffmpeg: Used for thumbnail processing.
- curl: Used for downloading thumbnails.
- Cookies File: Required for personalized recommendations. Note: Without cookies, the plugin cannot fetch YouTube recommendation data.
- How to export: Use a browser extension like Get cookies.txt LOCALLY to export your YouTube cookies in Netscape format. Save the file as
cookies.txt. For more details, see this guide. - The plugin automatically searches for
cookies.txtorcookie.txtin:- The directory containing
mpv.exe. - The directory containing the
yt-dlpexecutable.
- The directory containing
- How to export: Use a browser extension like Get cookies.txt LOCALLY to export your YouTube cookies in Netscape format. Save the file as
- Fonts: Download FiraCode Nerd Font and add
FiraCodeNerdFontMono-Regular.ttfto theportable_config/fontsdirectory. This is required for Nerd Font icon support used in the UI.
Installation
Automatic Installation
- Open the mpv-easy-youtube Build Page.
- Download
mpv-uosc.zipdirectly from the link and extract it. - Place your
cookies.txtinto the directory containingmpv.exe.
Manual Installation
- Use the link provided above to download
portable_config.zip. - Extract the contents and move all files into your mpv configuration directory.
- Ensure that necessary files like
yt-dlp,ffmpeg, andcookies.txtare located in the same folder as thempv.exeexecutable or available in your system path.
Configuration
You can customize the plugin via script-opts/mpv-easy-youtube.conf:
| Option | Type | Description | Default |
| :--- | :--- | :--- | :--- |
| cols | number | Number of columns in the grid | 4 |
| rows | number | Number of total rows to display | 4 |
| cookies-path | string | Path to your YouTube cookies.txt | (empty) |
| sidebar-width | number | Width of the sidebar in pixels | 64 |
| sidebar-pinned | boolean | Whether to always show the sidebar | no |
| title-font-size | number | Font size for video titles | 24 |
| title-font | string | Font family for titles | FiraCode Nerd Font Mono |
Usage
- Open the recommendation UI with the registered script message
youtube. - Use the mouse wheel to scroll through rows.
- Click on a video card to play it.
- Use the sidebar buttons to refresh or shuffle the list.
