Exaile finds the wrong 'local' cover
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Exaile |
Fix Released
|
Low
|
Unassigned |
Bug Description
I have 3 cover jpgs in each directory (album):
cover.jpg
coverSmall.jpg
coverLarge.jpg
Now exaile always find 'coverSmall.jpg'.
What I would like is:
1. search for covers with the name: 'album.
2. If (1) didn't give a cover then search for files which end in 'jpg|png|gif'
So I changed "./xl/cover.py" into:
"""
Sets up the cover search method
"""
self.exts = ['.jpg', '.jpeg', '.png', '.gif']
def find_covers(self, track, limit=-1):
covers = []
try:
except AttributeError:
raise NoCoverFoundExc
if not os.path.
raise NoCoverFoundExc
for file in os.listdir(
if not os.path.
# check preferred names
if file.lower() in self.preferred_
if limit != -1 and len(covers) == limit:
for file in os.listdir(
if not os.path.
# check for other names
if ext.lower() in self.exts:
if limit != -1 and len(covers) == limit:
Changed in exaile: | |
status: | Fix Committed → Fix Released |
I think the proper way to fix that is to allow users to specify a file name / regexp as a favourite local cover name. For instance, I always name mines .folder so that I don't see them when browsing music.