- def updateCoverArtPixmap(self, currentServiceName):
- filename = currentServiceName
- # The "getName" usually adds something like "MP3 File:" infront of filename
- # Get rid of this...by finding the first "/"
- # FIXME: this should be fixed in the servicemp3.cpp handler
- filename = filename[filename.find("/"):]
- path = os_path.dirname(filename)
- pngname = path + "/" + "folder.png"
+ def updateCoverArtPixmap(self, path):
+ while not path.endswith("/"):
+ path = path[:-1]
+ pngname = path + "folder.png"
+