Author: duncan
Date: Fri Nov  3 21:43:14 2006
New Revision: 8536

Modified:
   branches/rel-1/freevo/src/playlist.py

Log:
Merged bug #1589913 from rel-1-6

Modified: branches/rel-1/freevo/src/playlist.py
==============================================================================
--- branches/rel-1/freevo/src/playlist.py       (original)
+++ branches/rel-1/freevo/src/playlist.py       Fri Nov  3 21:43:14 2006
@@ -109,8 +109,11 @@
         for line in playlist_lines:
             if line.endswith('\r\n'):
                 line = line.replace('\\', '/') # Fix MSDOS slashes
-            if os.path.exists(os.path.join(curdir,line)):
-                self.playlist.append(os.path.join(curdir,line))
+            try:
+                if os.path.exists(os.path.join(curdir,line)):
+                    self.playlist.append(os.path.join(curdir,line))
+            except TypeError:
+                print 'Bad m3u playlist line in "%s":%r' % (plsname, line)
             
 
     def read_pls(self, plsname):

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