Author: duncan
Date: Sat Dec  1 11:43:43 2007
New Revision: 10169

Log:
[ 1830000 ] Audio CD Autoplay
Fix applied


Modified:
   branches/rel-1-7/freevo/ChangeLog
   branches/rel-1-7/freevo/src/audio/audiodiskitem.py
   branches/rel-1/freevo/ChangeLog
   branches/rel-1/freevo/src/audio/audiodiskitem.py

Modified: branches/rel-1-7/freevo/ChangeLog
==============================================================================
--- branches/rel-1-7/freevo/ChangeLog   (original)
+++ branches/rel-1-7/freevo/ChangeLog   Sat Dec  1 11:43:43 2007
@@ -23,6 +23,7 @@
  * Updated mplayer to allow the volume events to passed over and shown 
(F#1834486)
  * Updated webserver media library (F#1835346)
  * Renamed plug-in audio.playlist to audio.playlists (B#1834140)
+ * Fixed audiodiskitem not playing a cd when inserted (B#1830000)
  * Fixed audioscrobbler killing the auto shutdown feature (F#1831371)
  * Fixed helper plugins, not allowing tuples as arguments (B#1832837)
  * Fixed geexbox skin TV menu reporting record server status (B#1835256)

Modified: branches/rel-1-7/freevo/src/audio/audiodiskitem.py
==============================================================================
--- branches/rel-1-7/freevo/src/audio/audiodiskitem.py  (original)
+++ branches/rel-1-7/freevo/src/audio/audiodiskitem.py  Sat Dec  1 11:43:43 2007
@@ -42,7 +42,9 @@
     """
     class for handling audio disks
     """
-    def __init__(self, disc_id, parent, devicename = None, display_type = 
None):
+    def __init__(self, disc_id, parent, devicename=None, display_type=None):
+        _debug_('__init__(disc_id=%r, parent=%r, devicename=%r, 
display_type=%r)' % \
+            (disc_id, parent, devicename, display_type), 2)
 
         Playlist.__init__(self, parent=parent)
         self.type = 'audiocd'
@@ -66,7 +68,8 @@
         """
         return a list of actions for this item
         """
-        items = [ ( self.cwd, _('Browse disc') ) ]
+        _debug_('actions()', 2)
+        items = [ ( self.cwd(), _('Browse disc') ) ]
         return items
 
 
@@ -74,6 +77,7 @@
         """
         make a menu item for each file in the directory
         """
+        _debug_('cwd(arg=%r, menuw=%r)' % (arg, menuw), 2)
         play_items = []
         number = len(self.info['tracks'])
         if hasattr(self.info, 'mixed'):
@@ -83,7 +87,7 @@
             title=self.info['tracks'][i]['title']
             item = AudioItem('cdda://%d' % (i+1), self, title, scan=False)
 
-            # XXX FIXME: set also all the other infos here if AudioInfo
+            # XXX FIXME: set also all the other info here if AudioInfo
             # XXX will be based on mmpython
             #item.set_info('', self.name, title, i+1, self.disc_id[1], '')
             item.info = self.info['tracks'][i]

Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog     (original)
+++ branches/rel-1/freevo/ChangeLog     Sat Dec  1 11:43:43 2007
@@ -28,6 +28,7 @@
  * Updated mplayer to allow the volume events to passed over and shown 
(F#1834486)
  * Updated webserver media library (F#1835346)
  * Renamed plug-in audio.playlist to audio.playlists (B#1834140)
+ * Fixed audiodiskitem not playing a cd when inserted (B#1830000)
  * Fixed audioscrobbler killing the auto shutdown feature (F#1831371)
  * Fixed geexbox skin TV menu reporting record server status (B#1835256)
  * Fixed helper plugins, not allowing tuples as arguments (B#1832837)

Modified: branches/rel-1/freevo/src/audio/audiodiskitem.py
==============================================================================
--- branches/rel-1/freevo/src/audio/audiodiskitem.py    (original)
+++ branches/rel-1/freevo/src/audio/audiodiskitem.py    Sat Dec  1 11:43:43 2007
@@ -42,7 +42,9 @@
     """
     class for handling audio disks
     """
-    def __init__(self, disc_id, parent, devicename = None, display_type = 
None):
+    def __init__(self, disc_id, parent, devicename=None, display_type=None):
+        _debug_('__init__(disc_id=%r, parent=%r, devicename=%r, 
display_type=%r)' % \
+            (disc_id, parent, devicename, display_type), 2)
 
         Playlist.__init__(self, parent=parent)
         self.type = 'audiocd'
@@ -66,7 +68,8 @@
         """
         return a list of actions for this item
         """
-        items = [ ( self.cwd, _('Browse disc') ) ]
+        _debug_('actions()', 2)
+        items = [ ( self.cwd(), _('Browse disc') ) ]
         return items
 
 
@@ -74,6 +77,7 @@
         """
         make a menu item for each file in the directory
         """
+        _debug_('cwd(arg=%r, menuw=%r)' % (arg, menuw), 2)
         play_items = []
         number = len(self.info['tracks'])
         if hasattr(self.info, 'mixed'):
@@ -83,7 +87,7 @@
             title=self.info['tracks'][i]['title']
             item = AudioItem('cdda://%d' % (i+1), self, title, scan=False)
 
-            # XXX FIXME: set also all the other infos here if AudioInfo
+            # XXX FIXME: set also all the other info here if AudioInfo
             # XXX will be based on mmpython
             #item.set_info('', self.name, title, i+1, self.disc_id[1], '')
             item.info = self.info['tracks'][i]

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to