Skip to content

Python tool to play youtube audio in mpd using youtube-dl and mpc

License

Notifications You must be signed in to change notification settings

pbnoxious/yt2mpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yt2mpd

youtube to mpd script

Small tool that makes playing audio from youtube videos in mpd possible. Uses yt-dlp to download the requested audio to a temporary folder. Adds the successfully downloaded files to the current MPD playlist via mpc.

Installation

Download the source code and run

pip install .

There is also a package build for an arch linux package hosted that can be found here

Configuration

If the local MPD folder is not $XDG_MUSIC_DIR you will have to specify it in a config file. By default the program searches for a config file named yt2mpd.conf in either $XDG_CONFIG_HOME/yt2mpd or ~/.config/yt2mpd but you can also pass a custom location with the --config option. See the doc/yt2mpd.conf file for the config options and default values

Issues and wanted features

Add volatility, i.e. files are deleted automatically after they have been listened to.

License

Distributed under the GPL3 license. See LICENSE for more information.

About

Python tool to play youtube audio in mpd using youtube-dl and mpc

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages