DeaDBeeF-Player / deadbeef

DeaDBeeF Player
https://deadbeef.sourceforge.io/
Other
1.63k stars 177 forks source link

Proposal for finding local album covers based on complex mapping from track metadata to local file paths #1131

Open Oleksiy-Yakovenko opened 9 years ago

Oleksiy-Yakovenko commented 9 years ago

Original issue 1229 created by Alexey-Yakovenko on 2014-11-11T13:22:05.000Z:

my issue is : I have one folder for one artist, with several songs in it coming from several albums (and no embedded images). I also have in the same folder the different album cover pictures, named after the different albums.

the relation between songs and covers is like: track1 --> imagealbum1.jpg track2 --> imagealbum1.jpg track3 --> imagealbum2.jpg track4 --> imagealbum2.jpg track5 --> imagealbum3.jpg

the "problem" is that when i play track4 or track5 for example, the "album artwork" plugin will show the cover imagealbum1.jpg (as there are non embedded images, i guess the plugin takes the first picture in the folder). (the issue remains the same if tracks are flac or ogg files).

Is it possible, in the "album artwork" plugin, to adapt the syntax for the choice of the cover art, so that we can choose the corresponding album cover? as in foobar for example, where you can add the syntax "%album%.jpg", where %album% is the name of the album.

thanks

(running deadbeef 0.6.2 on archlinux/manjaro x86_64)

Oleksiy-Yakovenko commented 9 years ago

Comment #1 originally posted by Alexey-Yakovenko on 2014-11-11T13:54:10.000Z:

Not possible currently.

Soukyuu commented 8 years ago

I have something similar, but with multi disc albums. I've embedded a different cover for the two discs. Both albums have the same %album% value, so deadbeef only extracts the cover of the first disc and uses it for the second disc as well.

Suggestion: add a tf field in the config of the album art plugin, allowing user to set the "file name" of the generated cover cache entries.

Oleksiy-Yakovenko commented 8 years ago

agreed, this is a good idea, and very simple to do.

KernelModule commented 8 years ago

Suggestion: add a tf field in the config of the album art plugin, allowing user to set the "file name" of the generated cover cache entries.

Hm, I don't get it. Please, can you explain it and how in helps in OP's situation? Thanks.

Soukyuu commented 8 years ago

They could use something like imagename%tracknumber%.jpg for matching, which would match track1 --> imagealbum1.jpg track2 --> imagealbum2.jpg track3 --> imagealbum3.jpg track4 --> imagealbum4.jpg track5 --> imagealbum5.jpg

It's not completely ideal, but close to it, as I don't really see how else one would manage that.

KernelModule commented 8 years ago

Yeah, for example it won't work if track1 and album covers is different, right?