Update of /cvsroot/freevo/freevo/src/audio/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv1740

Modified Files:
        cdbackup.py 
Log Message:
if we have the coverart might as well copy it over

Index: cdbackup.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/audio/plugins/cdbackup.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** cdbackup.py 21 Oct 2003 21:17:41 -0000      1.23
--- cdbackup.py 22 Oct 2003 18:37:41 -0000      1.24
***************
*** 29,32 ****
--- 29,35 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.24  2003/10/22 18:37:41  mikeruelle
+ # if we have the coverart might as well copy it over
+ #
  # Revision 1.23  2003/10/21 21:17:41  gsbarbieri
  # Some more i18n improvements.
***************
*** 99,102 ****
--- 102,106 ----
  import threading
  import re
+ import shutil
  
  import config
***************
*** 303,307 ****
          
          # Get the artist, album and song_names        
!         (artist, album, genre, song_names) = self.get_formatted_cd_info(device)
                 
          dir_audio = config.AUDIO_BACKUP_DIR
--- 307,311 ----
          
          # Get the artist, album and song_names        
!         (discid, artist, album, genre, song_names) = 
self.get_formatted_cd_info(device)
                 
          dir_audio = config.AUDIO_BACKUP_DIR
***************
*** 332,335 ****
--- 336,346 ----
              _debug_(_( 'Directory %s already exists' ) % pathname)
  
+         try:
+           mycoverart = '%s/mmpython/disc/%s.jpg' % (config.FREEVO_CACHEDIR, discid)
+           if os.path.isfile(mycoverart):
+               shutil.copy(mycoverart, os.path.join(pathname,'cover.jpg'))
+       except:
+             _debug_('can not copy over cover art')
+ 
          self.output_directory = pathname
          cdparanoia_command = []
***************
*** 479,483 ****
              song_names.append(self.replace_special_char(track.title, '-'))
              
!         return [artist, album, genre, song_names]                
      
  
--- 490,494 ----
              song_names.append(self.replace_special_char(track.title, '-'))
              
!         return [cd_info.id, artist, album, genre, song_names]                
      
  




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to