eonpatapon / mpDris2

MPRIS V2.1 support for mpd
GNU General Public License v3.0
210 stars 46 forks source link

Try to read cover art from file in music_dir #131

Open kastdeur opened 4 years ago

kastdeur commented 4 years ago

Hey there,

In issue #97, two options for getting cover art are mentioned. This PR introduces the capability to prefetch cover art from the original file when it's present (both the file and the cover art therein).

It uses the code already implemented to fetch cover art from local files. To this end, this code is slightly tweaked.

There are still a few things todo:

I made this a draft PR, no idea whether that's appropriate..

kastdeur commented 4 years ago

The code is a simple implementation of the code mentioned in https://github.com/eonpatapon/mpDris2/issues/97#issuecomment-333622561