Author: duncan
Date: Fri Dec 15 08:23:52 2006
New Revision: 8729

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

Log:
[ 1616046 ] cdbackup feature request: replace space by underscore.
Added for the directory path too.


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 Fri Dec 15 08:23:52 2006
@@ -287,6 +287,24 @@
                                  'album': album,
                                  'genre': genre }
 
+        if config.CD_RIP_CASE.lower() == 'lower':
+            user_rip_path_prefs['artist'] = 
user_rip_path_prefs['artist'].lower()
+            user_rip_path_prefs['album'] = user_rip_path_prefs['album'].lower()
+            user_rip_path_prefs['genre'] = user_rip_path_prefs['genre'].lower()
+        elif config.CD_RIP_CASE.lower() == 'upper':
+            user_rip_path_prefs['artist'] = 
user_rip_path_prefs['artist'].upper()
+            user_rip_path_prefs['album'] = user_rip_path_prefs['album'].upper()
+            user_rip_path_prefs['genre'] = user_rip_path_prefs['genre'].upper()
+        elif config.CD_RIP_CASE.lower() == 'title':
+            user_rip_path_prefs['artist'] = 
user_rip_path_prefs['artist'].title()
+            user_rip_path_prefs['album'] = user_rip_path_prefs['album'].title()
+            user_rip_path_prefs['genre'] = user_rip_path_prefs['genre'].title()
+
+        if config.CD_RIP_REPLACE_SPACE:
+            user_rip_path_prefs['artist'] = 
user_rip_path_prefs['artist'].replace(' ', config.CD_RIP_REPLACE_SPACE)
+            user_rip_path_prefs['album'] = 
user_rip_path_prefs['album'].replace(' ', config.CD_RIP_REPLACE_SPACE)
+            user_rip_path_prefs['genre'] = 
user_rip_path_prefs['genre'].replace(' ', config.CD_RIP_REPLACE_SPACE)
+
         path_list = re.split("\\/", config.CD_RIP_PN_PREF)
 
         # Get everything up to the last "/"

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to