Update of /cvsroot/freevo/freevo/src/audio In directory sc8-pr-cvs1:/tmp/cvs-serv19597
Modified Files: __init__.py audioitem.py Log Message: moved mmpython parsing to audioinfo to support playlists Index: __init__.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/audio/__init__.py,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** __init__.py 29 Jun 2003 20:42:14 -0000 1.4 --- __init__.py 3 Jul 2003 23:13:46 -0000 1.5 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.5 2003/07/03 23:13:46 dischi + # moved mmpython parsing to audioinfo to support playlists + # # Revision 1.4 2003/06/29 20:42:14 dischi # changes for mmpython support *************** *** 44,48 **** #endif - import mmpython import config import util --- 47,50 ---- *************** *** 58,67 **** for file in util.find_matches(files, config.SUFFIX_AUDIO_FILES): ! if parent.media: ! url = 'cd://%s:%s:%s' % (parent.media.devicename, parent.media.mountdir, ! file[len(parent.media.mountdir)+1:]) ! else: ! url = file ! items.append(AudioItem(file, parent, mmpython.parse(url))) files.remove(file) --- 60,64 ---- for file in util.find_matches(files, config.SUFFIX_AUDIO_FILES): ! items.append(AudioItem(file, parent)) files.remove(file) Index: audioitem.py =================================================================== RCS file: /cvsroot/freevo/freevo/src/audio/audioitem.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** audioitem.py 29 Jun 2003 20:42:14 -0000 1.27 --- audioitem.py 3 Jul 2003 23:13:46 -0000 1.28 *************** *** 10,13 **** --- 10,16 ---- # ----------------------------------------------------------------------- # $Log$ + # Revision 1.28 2003/07/03 23:13:46 dischi + # moved mmpython parsing to audioinfo to support playlists + # # Revision 1.27 2003/06/29 20:42:14 dischi # changes for mmpython support *************** *** 81,84 **** --- 84,88 ---- from player import PlayerGUI from item import Item + import mmpython *************** *** 93,98 **** """ ! def __init__(self, file, parent, info = None, name = None): ! Item.__init__(self, parent, info) self.filename = file[:] self.url = None --- 97,108 ---- """ ! def __init__(self, file, parent, name = None): ! if parent and parent.media: ! url = 'cd://%s:%s:%s' % (parent.media.devicename, parent.media.mountdir, ! file[len(parent.media.mountdir)+1:]) ! else: ! url = file ! ! Item.__init__(self, parent, mmpython.parse(url)) self.filename = file[:] self.url = None ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Freevo-cvslog mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-cvslog