HTTP Server
Album cover art can be downloaded from an HTTP server.
Setting up an HTTP server for this purpose can be as simple as one command line with python:
python3 -m http.server -d /opt/media/music/ 6680Where the path is the same as the `music_directory` path in MPD configuration file.
Settings
Turn on Settings → Album Art → Enable HTTP album art and click "Enable HTTP album art" to set the configuration:
- Host
- Host name or IP address
Leave empty if the same as the MPD server host - Path
- The path part of the URL
May be required depending on the http server configuration.
It is the 'path' from the http document root to the music directory root. If the http document root is identical to MPD's music_directory then this path should be empty. The rest of the URL path is taken from the MPD file path which is relative to MPD's music_directory.
For example: If the http document root is /opt/media and the MPD music_directory is /opt/media/music then the the 'path' should be 'music'.
- Port number
- The port number
- File names to try
- Space separated list of base file names to try
- File extensions to try
- Space separated list of file extensions to try
The URL that MAFA will use is shown at the bottom of the configuration dialog. It has this form:
http://host:[port]/[path]/mpd file path/[name].[extension]where the URL parts in square brackets are from the configuration, and the 'mpd file path' is the directory path derived from the file path of the first album track (relative to the music directory path).