Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17725/src
Modified Files:
playlist.py
Log Message:
fix crash in m3u parsing
Index: playlist.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/playlist.py,v
retrieving revision 1.69
retrieving revision 1.70
diff -C2 -d -r1.69 -r1.70
*** playlist.py 9 May 2004 14:18:20 -0000 1.69
--- playlist.py 9 May 2004 16:44:13 -0000 1.70
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.70 2004/05/09 16:44:13 dischi
+ # fix crash in m3u parsing
+ #
# Revision 1.69 2004/05/09 14:18:20 dischi
# remove comments
***************
*** 113,122 ****
lines = util.readfile(plsname)
except IOError:
! print 'Cannot open file "%s"' % list
return 0
! playlist_lines_dos = map(lambda l: l.strip(), lines)
! playlist_lines = filter(lambda l: l[0] != '#', playlist_lines_dos)
!
(curdir, playlistname) = os.path.split(plsname)
for line in playlist_lines:
--- 116,129 ----
lines = util.readfile(plsname)
except IOError:
! print 'Cannot open file "%s"' % plsname
return 0
! try:
! playlist_lines_dos = map(lambda l: l.strip(), lines)
! playlist_lines = filter(lambda l: l[0] != '#', playlist_lines_dos)
! except IndexError:
! print 'Bad m3u playlist file "%s"' % plsname
! return 0
!
(curdir, playlistname) = os.path.split(plsname)
for line in playlist_lines:
-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver
higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog