mirror of
https://github.com/KrumpetPirate/AAXtoMP3.git
synced 2024-11-18 03:08:57 +01:00
Remove colon from metadata
This will help prevent issues on linux based operating systems where it cannot make the directories in the event any of the metadata (like the book name) includes a colon.
This commit is contained in:
parent
e66c51dbfa
commit
aba332abc0
2
AAXtoMP3
2
AAXtoMP3
@ -585,7 +585,7 @@ get_metadata_value() {
|
||||
local key
|
||||
key="$1"
|
||||
# Find the key in the meta data file # Extract field value # Remove the following /'s "(Unabridged) <blanks> at start end and multiples.
|
||||
echo "$($GREP --max-count=1 --only-matching "${key} *: .*" "$metadata_file" | cut -d : -f 2- | $SED -e 's#/##g;s/ (Unabridged)//;s/^[[:blank:]]\+//g;s/[[:blank:]]\+$//g' | $SED 's/[[:blank:]]\+/ /g')"
|
||||
echo "$($GREP --max-count=1 --only-matching "${key} *: .*" "$metadata_file" | cut -d : -f 2- | $SED -e 's#/##g;s/ (Unabridged)//;s/^[[:blank:]]\+//g;s/[[:blank:]]\+$//g' | $SED 's/[[:blank:]]\+/ /g' | $SED 's/\:/_/g')"
|
||||
}
|
||||
|
||||
# -----
|
||||
|
Loading…
Reference in New Issue
Block a user