use _ as separator instead of : for picon filenames
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 17 Sep 2007 21:32:00 +0000 (21:32 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Mon, 17 Sep 2007 21:32:00 +0000 (21:32 +0000)
for better compatibility with vfat based filesystems on some cf cards or usb
sticks

lib/python/Components/Renderer/Picon.py

index 2dfafb99cd19185cfbf528d7edcadeff76da5155..a9c36f2b124ae3730d0dcbc90d8b54f22ac6e288 100644 (file)
@@ -26,7 +26,7 @@ class Picon(Renderer):
                                # strip all after last :
                                pos = sname.rfind(':')
                                if pos != -1:
-                                       sname = sname[:pos].rstrip(':')
+                                       sname = sname[:pos].rstrip(':').replace(':','_')
                                pngname = self.nameCache.get(sname, "")
                                if pngname == "":
                                        pngname = self.findPicon(sname)