Skip to content

Commit

Permalink
Merge pull request automatic-ripping-machine#1159 from pwarren/main
Browse files Browse the repository at this point in the history
[BUGFIX] munge albumname to mitigate overwriting Unkown Album
  • Loading branch information
microtechno9000 authored Jun 29, 2024
2 parents 5aaeb6f + 6263f57 commit 04d2841
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions setup/.abcde.conf
Original file line number Diff line number Diff line change
Expand Up @@ -540,10 +540,15 @@ mungefilename ()
#
# Custom filename munging specific to album names:
# By default this function will call the mungefilename function.
#mungealbumname ()
#{
# mungefilename $@
#}
#
# Adjust albumname to not overwrite "Unkown Album" folders
# for subsequent unknown discs.
#
ID_SUFFIX=$(cd-discid $CDROM | cut -f1 -d ' ')
mungealbumname ()
{
mungefilename $(echo "$@" | sed s,'Unknown Album','Unknown Album_'$ID_SUFFIX,g)
}

# Custom genre munging:
# By default we just transform uppercase to lowercase. Not much of a fancy
Expand Down

0 comments on commit 04d2841

Please sign in to comment.