Hi,
Have had some issues with recursion of covers on my audio files in both 1.4
and CVS.
I mainly experienced it due to a custom AUDIO_COVER_REGEXP setting
The problem is caused due to "Item.__init__(self, parent)" being called
which effectively sets self.image to parent.image meaning the cover
detection code fails to work as intended.
Below is a patch which sets self.image back to none, and then only reverts
to the parent directory image if no image is found.
--- freevo/src/directory.py~ 2003-12-01 22:15:15.000000000 +1300
+++ freevo/src/directory.py 2003-12-01 22:15:15.000000000 +1300
@@ -148,6 +148,7 @@
self.type = 'dir'
self.menuw = None
self.menu = None
+ self.image = None
# variables only for Playlist
self.current_item = 0
@@ -248,6 +249,8 @@
if self.DIRECTORY_SORT_BY_DATE == 2 and self.display_type != 'tv':
self.DIRECTORY_SORT_BY_DATE = 0
+ if not self.image:
+ self.image = parent.image
def set_xml_file(self, file):
"""
cheers
shammah
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel