Author: duncan
Date: Tue Dec 25 17:15:57 2007
New Revision: 10241

Log:
[ 1857460 ] [PATCH] option to skip audio.cdbackup encoding format menu
Patch from Michel Lespinasse applied


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

Modified: branches/rel-1-7/freevo/ChangeLog
==============================================================================
--- branches/rel-1-7/freevo/ChangeLog   (original)
+++ branches/rel-1-7/freevo/ChangeLog   Tue Dec 25 17:15:57 2007
@@ -16,6 +16,7 @@
 == Release 1.7.6 (2008-??-??) ==
 --------------------------------
 
+ * Updated cdbackup plug-in with CD_RIP_FMT to set the encoding format 
(F#1857460)
  * Updated recordings manager plug-in to add thumbnail support (F#1857397)
  * Updated recordserver to default watched/keep status (F#1857395)
  * Updated shut down to allow single key confirmation (F#1857456)

Modified: branches/rel-1-7/freevo/src/audio/plugins/cdbackup.py
==============================================================================
--- branches/rel-1-7/freevo/src/audio/plugins/cdbackup.py       (original)
+++ branches/rel-1-7/freevo/src/audio/plugins/cdbackup.py       Tue Dec 25 
17:15:57 2007
@@ -169,6 +169,7 @@
                 ('CDPAR_CMD', config.CONF.cdparanoia, ''),
                 ('OGGENC_CMD', config.CONF.oggenc, ''),
                 ('FLAC_CMD', config.CONF.flac, ''),
+                ('CD_RIP_FMT', None, ''),
                 ('CD_RIP_CDPAR_OPTS', '-s', ''),
                 ('CD_RIP_PN_PREF', '%(artist)s/%(album)s/%(song)s', ''),
                 ('CD_RIP_LAME_OPTS', '--preset standard', ''),
@@ -188,9 +189,8 @@
                 else:
                     self.device = self.item.devicename
                     _debug_('devicename = %s' %self.device)
-                    return [ ( self.create_backup_menu,
-                               _('Rip the CD to the hard drive'),
-                               _('Get CDs available for ripping')) ]
+                    return [ ( self.create_backup,
+                               _('Rip the CD to the hard drive')) ]
         except:
             _debug_( _( 'ERROR' ) + ': ' + _( 'Item is not an Audio CD' ) )
         return []
@@ -211,6 +211,12 @@
             pop.show()
 
 
+    def create_backup(self, arg=None, menuw=None):
+        if config.CD_RIP_FMT:
+            self.cd_backup(arg=(self.device, config.CD_RIP_FMT), menuw=menuw)
+        else:
+            self.create_backup_menu(menuw=menuw)
+
     def create_backup_menu(self, arg=None, menuw=None):
         mm_menu = self.create_backup_items(self.device, menuw=None)
         menuw.pushmenu(mm_menu)

Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog     (original)
+++ branches/rel-1/freevo/ChangeLog     Tue Dec 25 17:15:57 2007
@@ -19,6 +19,7 @@
 == Release 1.7.6 (2008-??-??) ==
 --------------------------------
 
+ * Updated cdbackup plug-in with CD_RIP_FMT to set the encoding format 
(F#1857460)
  * Updated recordings manager plug-in to add thumbnail support (F#1857397)
  * Updated recordserver to default watched/keep status (F#1857395)
  * Updated shut down to allow single key confirmation (F#1857456)

Modified: branches/rel-1/freevo/src/audio/plugins/cdbackup.py
==============================================================================
--- branches/rel-1/freevo/src/audio/plugins/cdbackup.py (original)
+++ branches/rel-1/freevo/src/audio/plugins/cdbackup.py Tue Dec 25 17:15:57 2007
@@ -169,6 +169,7 @@
                 ('CDPAR_CMD', config.CONF.cdparanoia, ''),
                 ('OGGENC_CMD', config.CONF.oggenc, ''),
                 ('FLAC_CMD', config.CONF.flac, ''),
+                ('CD_RIP_FMT', None, ''),
                 ('CD_RIP_CDPAR_OPTS', '-s', ''),
                 ('CD_RIP_PN_PREF', '%(artist)s/%(album)s/%(song)s', ''),
                 ('CD_RIP_LAME_OPTS', '--preset standard', ''),
@@ -188,9 +189,8 @@
                 else:
                     self.device = self.item.devicename
                     _debug_('devicename = %s' %self.device)
-                    return [ ( self.create_backup_menu,
-                               _('Rip the CD to the hard drive'),
-                               _('Get CDs available for ripping')) ]
+                    return [ ( self.create_backup,
+                               _('Rip the CD to the hard drive')) ]
         except:
             _debug_( _( 'ERROR' ) + ': ' + _( 'Item is not an Audio CD' ) )
         return []
@@ -211,6 +211,12 @@
             pop.show()
 
 
+    def create_backup(self, arg=None, menuw=None):
+        if config.CD_RIP_FMT:
+            self.cd_backup(arg=(self.device, config.CD_RIP_FMT), menuw=menuw)
+        else:
+            self.create_backup_menu(menuw=menuw)
+
     def create_backup_menu(self, arg=None, menuw=None):
         mm_menu = self.create_backup_items(self.device, menuw=None)
         menuw.pushmenu(mm_menu)

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to