=== modified file 'data/ui/cover_prefs_pane.ui' --- data/ui/cover_prefs_pane.ui 2009-12-29 06:12:17 +0000 +++ data/ui/cover_prefs_pane.ui 2010-01-22 19:56:24 +0000 @@ -63,6 +63,53 @@ + + True + + + True + Favourite filename: + + + False + False + 0 + + + + + + + + True + True + + + + False + False + end + 1 + + + + + False + 2 + + + + + True + + + False + False + 8 + 3 + + + True @@ -127,7 +174,7 @@ False - 2 + 4 @@ -152,7 +199,7 @@ False - 3 + 5 === modified file 'xl/cover.py' --- xl/cover.py 2010-01-16 07:22:33 +0000 +++ xl/cover.py 2010-01-22 20:17:49 +0000 @@ -472,7 +472,7 @@ name = "localfile" uri_types = ['file', 'smb', 'sftp', 'nfs'] extensions = ['.png', '.jpg', '.jpeg', '.gif'] - preferred_names = ['album', 'cover'] + preferred_names = settings.get_option('covers/filename', 'cover') fixed = True fixed_priority = 31 def find_covers(self, track, limit=-1): @@ -495,7 +495,7 @@ base, ext = os.path.splitext(filename) if ext.lower() not in self.extensions: continue - if base in self.preferred_names: + if base == self.preferred_names: covers.insert(0, gloc.get_uri()) else: covers.append(gloc.get_uri()) === modified file 'xlgui/prefs/cover_prefs.py' --- xlgui/prefs/cover_prefs.py 2009-12-29 06:12:17 +0000 +++ xlgui/prefs/cover_prefs.py 2010-01-22 20:15:47 +0000 @@ -64,3 +64,7 @@ class AutomaticCoverFetching(widgets.CheckPrefsItem): default = True name = 'covers/automatic_fetching' + +class FavouriteCover(widgets.PrefsItem): + default = 'cover' + name = 'covers/filename'