Author: duncan
Date: Fri Nov 3 21:40:19 2006
New Revision: 8535
Modified:
branches/rel-1-6/freevo/src/playlist.py
Log:
[ 1589913 ] cache rebuild, having problems building the cache..
Patch applied to test for TypeError.
Modified: branches/rel-1-6/freevo/src/playlist.py
==============================================================================
--- branches/rel-1-6/freevo/src/playlist.py (original)
+++ branches/rel-1-6/freevo/src/playlist.py Fri Nov 3 21:40:19 2006
@@ -126,8 +126,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