SoongNoonien / plattenalbum

Connect to your music
GNU General Public License v3.0
177 stars 24 forks source link

Support MPD server albumart for Covers #22

Closed lulis closed 3 years ago

lulis commented 3 years ago

Since MPD 0.21 the mpd protocol supports albumart images. Can mpdevil retrieve the covers by this way?

I've first read about it on myMPD. Mpdevil music lib only works locally, and I'm looking for some way to retrieve covers over LAN.

And thanks so much for the best linux MPD client. Mpdevil it's really awesome!

SoongNoonien commented 3 years ago

Can mpdevil retrieve the covers by this way?

Currently not but I'm working on it. Also keep in mind that version 2.0.0 (for albumart) or even 3.0.0 (for readpicture) of python-mpd2 will be required on the remote machine when using mpdevil in a non flatpak environment.

Mpdevil music lib only works locally, and I'm looking for some way to retrieve covers over LAN.

Currently there a two different approaches I'm aware of to work around this. You could either mount your music lib via samba or NFS on the remote machine or sync a copy of your lib to the remote machine which only contains the covers (this should be relatively easy with rsync). But they are both not as good as using albumart or readpicture.

And thanks so much for the best linux MPD client. Mpdevil it's really awesome!

I'm pleased to here! :)

SoongNoonien commented 3 years ago

With the newest commit mpdevil falls back to albumart and then to readpicture when no covers are found the normal way. I'm not sure if this will be the final implementation but I think it is ready for testing.

SoongNoonien commented 3 years ago

Please let me know if it is working as expected.

lulis commented 3 years ago

@SoongNoonien , sorry but I cannot succeed on getting mpdevil working building it from source. Still getting this:

$ mpdevil 
(mpdevil:498045): GLib-GIO-ERROR **: 18:05:43.907: Settings schema 'org.mpdevil.mpdevil' is not installed

Any suggestions?

I'm on Ubuntu 20.04 x86_64 here.

SoongNoonien commented 3 years ago

Hi, did you run sudo glib-compile-schemas /usr/share/glib-2.0/schemas? (Maybe it is needed to change the path to /usr/local/share depending on where you installed it.)

lulis commented 3 years ago

Thanks, man, it did it. Also, as you said earlier, I've removed the default python3-mpd (v1.1.0-1) and installed a newer version using pip. So, for future reference, if someone (maybe me) needs to build it on Ubuntu 20.04:

Dependencies:

$ sudo apt install python3-distutils-extra python3-gi python3-requests python3-bs4 
$ sudo pip3 install python-mpd2

And from mpdevil cloned source code folder:

$ sudo python3 setup.py install
$ sudo glib-compile-schemas /usr/local/share/glib-2.0/schemas
$ sudo gtk-update-icon-cache
$ sudo update-desktop-database

Work like a charm!!!
Captura de tela de 2021-04-18 20-25-13

SoongNoonien commented 3 years ago

Ok, I think we can close this bug then.