HTTP album art stopped working

Important: The cover album art is shown in the Player queue.
But no album covers are shown in the Album view.

  • I assume, the HTTP config on my MPD voyage linux is correct, otherwise the album art would not be shown in the Player view
  • I did not change my MPD config on my server for years
  • Album art worked in MAFA flawlessly a few weeks ago
  • I am able to successfully access cover images using Firefox (e.g. http://silberstein/music/Pop%20und%20Rock/Alben/Kiasmos/Swept/cover.jpg)
  • Album art works in MPDroid
  • Strange: In my web server’s log file I can see the call for the album art for the Player view - but no log entries if I switch to the Album view (as if MAFA does not even try to fetch the images)

Any ideas?
Cheers, Thomas


MAFA version: 1.9.11
Android version: 7.0
Device model: Samsung Galayx Tab S2, SM-T813
MPD version: 0.16.0

Hello,

Can you please verify your MPD version?
0.16.0 is very old. It’s difficult to even build for testing.

I tested with a more recent MPD version and the HTTP album art works both in the player and the albums view. It doesn’t mean there’s no bug, but it would help to catch the problem if I could test with the same MPD version you are using.

Thanks.

Hi Alex,

I confirm: 0.16.0.
A version from the stone age.

  • I am a developer myself, please advise, how I can help
  • Why should the missing album images be related to the MPD version? I would have suggested, fetching images via HTTP from the server is independent from MPD
  • I use lighttpd as webserver
  • As already described in my first post: fetching album images via Firefox works, and gold old MPDroid also shows all images as expected
  • The best hint I can give are the missing log entries on my webserver: It looks as if no album images are requested in the Album view (in contrast to the Player view: there the album images are fetched, which is reflected in GET log entries on the webserver)

Please advise, if I can help to dig deeper.

Thanks in advance, best wishes
Thomas

In order to query the cover art image file the client needs to know the path of the target music file.
In the player queue the path is given.
In the albums view, the client first queries for the album’s tracks and then uses the path of the first track.
In a recent MAFA version, the window 0:1 argument was added to the find album command.
This argument is supported since MPD v0.20.
MAFA does check the MPD version before using the window argument. That’s why the MPD version is important.
If MAFA uses this argument with an MPD that doesn’t support it, the command will fail and there will not be a query for the cover art.

Can you look in your MPD log to see if commands like: find album ALBUM_NAME window 0:1 are sent by MAFA and failing?

PS. you may need to clear or refresh the album art cache in order to force MAFA to retry failed album art attempts.

Alex, I have turned on MPD logging (log level “verbose”).

If I browse the Album view this is what is being logged:

...
Nov 03 19:08 : client: [1] process command list
Nov 03 19:08 : client: command_process_list: process command "count album "A Momentary Lapse of Reason""
Nov 03 19:08 : client: command_process_list: command returned 0
Nov 03 19:08 : client: command_process_list: process command "tagtypes clear"
Nov 03 19:08 : client: command_process_list: command returned -1
Nov 03 19:08 : client: [1] process command list returned -1
Nov 03 19:08 : client: [1] process command list
Nov 03 19:08 : client: command_process_list: process command "count album "A New Flame""
Nov 03 19:08 : client: command_process_list: command returned 0
Nov 03 19:08 : client: command_process_list: process command "tagtypes clear"
Nov 03 19:08 : client: command_process_list: command returned -1
Nov 03 19:08 : client: [1] process command list returned -1
...

This is not what you were looking for. What would I need to do, to increase the log level?

Thanks. Regards,
Thomas

And this is the output if I browse to the Playlist view:

Nov 03 19:16 : client: [1] process command "idle"
Nov 03 19:16 : client: [1] command returned 1
Nov 03 19:16 : client: [1] process command "playlistinfo 0:20"
Nov 03 19:16 : client: [1] command returned 0
Nov 03 19:16 : client: [1] process command "playlistinfo 0:20"
Nov 03 19:16 : client: [1] command returned 0
Nov 03 19:16 : client: [1] process command "idle"
Nov 03 19:16 : client: [1] command returned 1

Thanks for the logs.

Looks like the problem is with the tagtypes clear command.

The MPD changelog is not detailed enough about what version exactly added the sub command clear.
tagtypes was added in MPD v0.13, but the sub-command clear seems to be from v0.21 (2018).

I’ll have to look in the source history and make conditional use of this command according to protocol version. It may take some time.

(Just out of curiosity, why do you keep using such an old version of MPD?)

A fix is now in beta testing (MAFA version 1.9.12)

Alex, I appreciate your efforts. Thanks again!

Why do I use an old version of MDP? Fair question.
Over 10 years ago I built a little server for my music (all flac based).

  • The server is based on an ALIX board (https://www.alix-board.de/)
  • OS is Voyage Linux, built especially for MPD
  • Sadly Voyage Linux is not supported any more
  • But Voyage Linux boots and runs rock solid from a flashcard since more than 10 years!
  • If I wanted to update the system, I would have to do way more than sudo apt update ; sudo apt upgrade
  • Up until now I was able to control my server via either MPDroid or (relatively new) MAFA
  • MPDroid is out of support since many years and has its flaws
  • MAFA looks very promising (thanks again)

Bottom line: If your bugfix works, I am happy to stay with MAFA and will not touch my running system. Don’t touch a running …

Only if you tell me, “sorry, to old to support”, I must nudge myself to update my system.

By the way: How can I donate and reward your efforts? I would donate something to the coffee fund …

Cheers, Thomas

Makes sense to me.

The fix works in my testing. You can test it from the beta channel now or wait for a few days for it to be released to the Play store.

Reporting bugs in the app and helping to solve them is reward enough. Thank you!

Thanks Alex. I will wait for the app to be delivered via Google Play Store. Then I will come back to this forum and report.

Cheers, Thomas

It works! I confirm that the bugfix (if you want to call it so, it is more like an old-version-feature-request) works and album art is working again.
Thanks for the great support, even on MPD versions from the stone age.

Cheers, viele Grüße, Thomas