Author: duncan
Date: Sun Oct 15 08:14:59 2006
New Revision: 8374

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

Log:
[ 1577463 ] web radio broken in svn
Changed test only for exists from isdir.


Modified: branches/rel-1-5/freevo/src/plugins/mediamenu.py
==============================================================================
--- branches/rel-1-5/freevo/src/plugins/mediamenu.py    (original)
+++ branches/rel-1-5/freevo/src/plugins/mediamenu.py    Sun Oct 15 08:14:59 2006
@@ -8,15 +8,6 @@
 # Todo:        
 #
 # -----------------------------------------------------------------------
-# $Log$
-# Revision 1.37  2004/07/10 12:33:40  dischi
-# header cleanup
-#
-# Revision 1.36  2004/03/18 15:38:18  dischi
-# Automouter patch to check for hosts in mediamenu from Soenke Schwardt.
-# See doc of VIDEO_ITEMS for details
-#
-# -----------------------------------------------------------------------
 # Freevo - A Home Theater PC framework
 # Copyright (C) 2002 Krister Lagerstrom, et al. 
 # Please see the file freevo/Docs/CREDITS for a complete list of authors.
@@ -35,7 +26,7 @@
 # with this program; if not, write to the Free Software Foundation, Inc.,
 # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
-# ----------------------------------------------------------------------- */
+# -----------------------------------------------------------------------
 
 
 import os
@@ -173,8 +164,9 @@
                                 reachable = 0
                         except:
                             traceback.print_exc()
-                elif not os.path.isdir(filename):
-                    print '\"%s\" is not a directory or doesn\'t exist' % 
(filename)
+                # May need to change this filename.find('.fxd')
+                elif not os.path.exists(filename):
+                    print '\"%s\" doesn\'t exist' % (filename)
                     reachable = 0
                        
                 if reachable:
@@ -198,11 +190,9 @@
                                 for i in items:
                                     i.name = title
                             self.normal_items += items
-                            
             except:
                 traceback.print_exc()
 
-
         items = self.main_menu_generate()
 
         # autoselect one item

-------------------------------------------------------------------------
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