Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv21136/src
Modified Files:
playlist.py
Log Message:
Only change backslashes to slashes if it is an MSDOS file
Index: playlist.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/playlist.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** playlist.py 26 Feb 2003 03:56:24 -0000 1.11
--- playlist.py 27 Feb 2003 05:29:42 -0000 1.12
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.12 2003/02/27 05:29:42 krister
+ # Only change backslashes to slashes if it is an MSDOS file
+ #
# Revision 1.11 2003/02/26 03:56:24 krister
# Convert MSDOS filenames to unix slashes
***************
*** 127,131 ****
(curdir, playlistname) = os.path.split(plsname)
for line in playlist_lines:
! line = line.replace('\\', '/') # Fix MSDOS slashes
if util.match_suffix(line, config.SUFFIX_AUDIO_FILES):
self.playlist += [ AudioItem(os.path.join(curdir, line), self) ]
--- 130,135 ----
(curdir, playlistname) = os.path.split(plsname)
for line in playlist_lines:
! if line.endswith('\r\n'):
! line = line.replace('\\', '/') # Fix MSDOS slashes
if util.match_suffix(line, config.SUFFIX_AUDIO_FILES):
self.playlist += [ AudioItem(os.path.join(curdir, line), self) ]
***************
*** 159,163 ****
(curdir, playlistname) = os.path.split(plsname)
for line in playlist_lines:
! line = line.replace('\\', '/') # Fix MSDOS slashes
if util.match_suffix(line, config.SUFFIX_AUDIO_FILES):
self.playlist += [ AudioItem(os.path.join(curdir, line), self) ]
--- 163,168 ----
(curdir, playlistname) = os.path.split(plsname)
for line in playlist_lines:
! if line.endswith('\r\n'):
! line = line.replace('\\', '/') # Fix MSDOS slashes
if util.match_suffix(line, config.SUFFIX_AUDIO_FILES):
self.playlist += [ AudioItem(os.path.join(curdir, line), self) ]
-------------------------------------------------------
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog