rexstout / abcde

Automatically exported from code.google.com/p/abcde
GNU General Public License v2.0
0 stars 0 forks source link

Problem with mungefilename for "...Nothing Like The Sun" by Sting (or any album with dots in beginning) #135

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Ripping Sting's "...Nothing Like the Sun"
2. Ripping any album starting with dots, i.e., "..."
3.

What is the expected output? What do you see instead?
Expected a rip of my CD to the default OUTPUTFORMTAT directory
OUTPUTFORMAT='${OUTPUT}/${ARTISTFILE}/${ALBUMFILE}/${TRACKNUM}  - ${TRACKFILE}'

The .. in the filename causes and error in the file processing (it ends up 
being a parent directory).

What version of the product are you using? On what operating system?
This is abcde v2.5.4.

Please provide any additional information below.
Lots of fixes are possible. I changed the mungefilename function in .abcde.conf 
in my user directory as follows:

mungefilename ()
{
  echo "$@" | sed 's/\/*\.\.\../\//' | sed s,:,-,g | tr / _ | tr -d \'\"\?\[:cntrl:\]
}

Original issue reported on code.google.com by dr.andre...@gmail.com on 17 Mar 2015 at 8:12