Small script for listening to music from a subsonic server through mpd.
Find a file
2025-08-09 22:09:44 +02:00
Makefile add make check 2025-07-07 20:53:27 +02:00
mpdsubridge.sh use curl internals to check http response code 2025-08-09 22:09:44 +02:00
README.md add wget as alternative to README.md 2025-07-09 16:18:00 +02:00

MPDSuBridge

A small script that helps listening to music from a subsonic server through mpd.

Usage

To use the bridge, you need to login to the subsonic server through mpdsubridge -l. After that, the script can be run without arguments, to search a song and add it to an instance of mpd. The mpd host/port is set through the environment variables MPD_HOST and MPD_PORT.

Login Selection

Multiple logins can be created, and switched with -S for the server and -U for the username. If no value is given the defaults from the config file at $XDG_CONFIG_HOME/mpdsubridge.conf will be used. These automatically contain the first login created.

Non Interactive

Using the switch -s <search_term> a song/album can be searched non interactive. The found song can then be added with -p <id>. If an album should be added, the syntax is -p a:<id>.

Install

To install the script, first clone the repository, go into the directory, and then run the installation command:

git clone https://git.csi-zeugs.eu/fx/mpdsubridge.git
cd mpdsubridge
sudo make install

Dependencies