Author: duncan
Date: Tue Oct 24 15:10:23 2006
New Revision: 8465

Modified:
   branches/rel-1-6/freevo/src/plugins/mediamenu.py

Log:
[ 1578663 ] web radio appears twice on the menu
The problem is that webradio is a playlist and a fxdfile, this fix should stop 
this duplication


Modified: branches/rel-1-6/freevo/src/plugins/mediamenu.py
==============================================================================
--- branches/rel-1-6/freevo/src/plugins/mediamenu.py    (original)
+++ branches/rel-1-6/freevo/src/plugins/mediamenu.py    Tue Oct 24 15:10:23 2006
@@ -184,8 +184,14 @@
                                 filename = filename[1:]
                             filename = vfs.join(config.SHARE_DIR, filename)
                         # normal file
+                        # webradio is both a playlist and an fxditem
+                        dups = []
                         for p in plugin.mimetype(self.display_type):
                             items = p.get(self, [ String(filename) ])
+                            if filename in dups:
+                                continue
+                            else:
+                                dups.append(filename)
                             if title:
                                 for i in items:
                                     i.name = title

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to