Add an option to chose the favourite filename for local cover fetching

Bug #425884 reported by Steve Dodier-Lazaro
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Low
Mathias Brodala

Bug Description

Exaile 0.3.0.x

If the favourite search place for covers is "local", it makes sense to let users select a favourite file name (or list of file names) for their covers, as in Exaile 0.2.x, since many old users already have their covers named that way.

Another interesting option would be to allow saving remotely fetched covers under that favourite file name specified by the user.

Related branches

reacocard (reacocard)
Changed in exaile:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Ubuntuxer (johannes-schw) wrote :

Hi, I wrote a small patch, so you can select your favourite locale cover file name.

Revision history for this message
reacocard (reacocard) wrote :

a few things that should changed in the patch:
- the setting is only loaded once, when the covers system is initialized. you should just re-read it from settings in find_covers and use preferred_names for the default in the call.
- this method doesn't allow for multiple file names to be chosen. many users will have covers with different names (cover, album...) so we need to support multiple choices, just as 0.2.14 did.
- "Favorite filename" is not very descriptive, perhaps something like "Preferred cover filename" would be clearer.

other than that, looks good

Revision history for this message
Ubuntuxer (johannes-schw) wrote :

thanks for your advices

Does it make sense to allow multiple file names? You have to evulate the file names and Exaile finds every image in the music directory anyway.

Revision history for this message
Ubuntuxer (johannes-schw) wrote :

thanks for your advices

Does it make sense to allow multiple file names? You have to evulate the file names and Exaile finds every image in the music directory anyway.

Revision history for this message
Steve Dodier-Lazaro (sidi) wrote : Re: [Bug 425884] Re: Add an option to chose the favourite filename for local cover fetching

It can make sense to want to use folder.png when available, and to fallback
to another file format when not. You can just let the user specify a simple
list of filenames, space separated, and go through these in the order
they've been specified. For instance:

cover.svg "other cover.png" "crappy cover.jpg"

would be a valid list.

Revision history for this message
reacocard (reacocard) wrote :

Steve is precisely correct - allowing multiple is to allow people to fall back to a second (or third, fourth...) preferred name if their collection contains more than one convention for names. IIRC 0.2.14 used a comma-separated list for that, eg. "cover, album, coverart"

Revision history for this message
Ubuntuxer (johannes-schw) wrote :

I have thought about how to sort the covers for half an hour, without making it extremely complicated, but I failed.

Revision history for this message
reacocard (reacocard) wrote :

Heh, yeah the sorting isn't too easy to do simply. I've attached what I came up with, which isn't too bad.

Revision history for this message
Ubuntuxer (johannes-schw) wrote :

I've tested your patch and it works perfectly well. Despite I still think there is no really need for it.

Revision history for this message
Mathias Brodala (mathbr) wrote :

Fixed with r3988.

Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
importance: Medium → Low
milestone: none → 0.3.3.0
status: Confirmed → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.