mablin7 / ytmenu

A simple script to play music from youtube with mpd and dmenu

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ytmenu

A simple script to play music from youtube with mpd and dmenu. It can search for songs, auto-generated mixes and live streams, then play them through mpd. It also keeps a history of the songs you played.

Requirements

Usage

  1. Clone the repo
  2. Get a YouTube Data API key here (follow until step 3)
  3. Paste your API key into the ytmenu script (API_KEY = '{YOUR_API_KEY_HERE}')
  4. Make the script executable chmod +x ./ytmenu
  5. (Optional) Add the script top your path
  6. (Optional) Setup a keyboard shortcut with sxhkd or your window manager

Known issues

  • Sometimes livestreams can't be played from history, even if they're still streaming. Perhaps they change their IDs?

About

A simple script to play music from youtube with mpd and dmenu


Languages

Language:Python 100.0%