Author: duncan
Date: Thu Dec 14 23:28:58 2006
New Revision: 8728
Modified:
branches/rel-1/freevo/ChangeLog
branches/rel-1/freevo/freevo_config.py
branches/rel-1/freevo/local_conf.py.example
branches/rel-1/freevo/src/audio/plugins/cdbackup.py
Log:
[ 1616046 ] cdbackup feature request: replace space by underscore.
Fix applied.
Modified: branches/rel-1/freevo/ChangeLog
==============================================================================
--- branches/rel-1/freevo/ChangeLog (original)
+++ branches/rel-1/freevo/ChangeLog Thu Dec 14 23:28:58 2006
@@ -29,6 +29,7 @@
* New XM online plugin (F#1580412)
* New webserver library, allows playing/viewing on local and host machines
(F#1592806)
* Updated autocrop to take more samples from different parts of the video
(F#1591170)
+ * Updated cdbackup plug-in to accept CD_RIP_CASE and CD_RIP_REPLACE_SPACE
(F#1616046)
* Updated idlebar clock plug-in to allow CLOCK_FORMAT to be used (F#1605951)
* Updated idlebar diskfree plug-in to allow the bar colours levels to be set
(F#1605953)
* Updated DEBUGGING, IP, PORT, UID and GUI based on helper name (F#1580628)
Modified: branches/rel-1/freevo/freevo_config.py
==============================================================================
--- branches/rel-1/freevo/freevo_config.py (original)
+++ branches/rel-1/freevo/freevo_config.py Thu Dec 14 23:28:58 2006
@@ -768,6 +768,8 @@
CD_RIP_LAME_OPTS = '--vbr-new -b 192 -h'
CD_RIP_OGG_OPTS = '-m 128'
CD_RIP_FLAC_OPTS = '-8'
+CD_RIP_CASE = None # Can be title, upper, lower
+CD_RIP_REPLACE_SPACE = None # Can be '_', '-', etc.
# ----------------------------------------------------------------------
# CD Burning
Modified: branches/rel-1/freevo/local_conf.py.example
==============================================================================
--- branches/rel-1/freevo/local_conf.py.example (original)
+++ branches/rel-1/freevo/local_conf.py.example Thu Dec 14 23:28:58 2006
@@ -397,6 +397,8 @@
# CD_RIP_LAME_OPTS = '--vbr-new -b 192 -h'
# CD_RIP_OGG_OPTS = '-m 128'
# CD_RIP_FLAC_OPTS = '-8'
+# CD_RIP_CASE = None # Can be title, upper, lower
+# CD_RIP_REPLACE_SPACE = None # Can be '_', '-', etc.
# ----------------------------------------------------------------------
# CD Burning
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 Thu Dec 14 23:28:58 2006
@@ -350,6 +350,16 @@
path_tail = path_tail_temp % user_rip_path_prefs
+ if config.CD_RIP_CASE.lower() == 'lower':
+ path_tail = path_tail.lower()
+ elif config.CD_RIP_CASE.lower() == 'upper':
+ path_tail = path_tail.upper()
+ elif config.CD_RIP_CASE.lower() == 'title':
+ path_tail = path_tail.title()
+
+ if config.CD_RIP_REPLACE_SPACE:
+ path_tail = path_tail.replace(' ', config.CD_RIP_REPLACE_SPACE)
+
# If rip_format is mp3 or ogg, then copy the file to
# /tmp/track_being_ripped.wav
if (string.upper(rip_format) == 'MP3') or \
-------------------------------------------------------------------------
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