2 Commits

Author SHA1 Message Date
Chris A. Bunt
985f4b5235 upgrade audio disc logging capabilities
Enhance the logging methodology for audio discs. If an audio disc is
identified the musicbrainz or cddb disc ID is used as a logging file
name. This makes multipe rip processes easier to identify and
troubleshoot, and puts audio ripping logs in position to be cleaned by
the existing log-cleaning routine.
2017-06-04 23:43:54 -05:00
Chris A. Bunt
d7a66d4800 Enhance audio disc logging
Enhanced the logging methodology for audio discs. If an audio disc is
identified the musicbrainz or cddb disc ID is used as a logging file
name. This makes multipe rip processes easier to identify and
troubleshoot, and puts audio ripping logs in position to be cleaned by
the existing log-cleaning routine.
2017-06-04 23:31:38 -05:00
2 changed files with 9 additions and 3 deletions

1
.gitignore vendored
View File

@@ -4,3 +4,4 @@ archive/
config
temp/
test.py
*.sh~

View File

@@ -162,10 +162,15 @@ PO_APP_KEY=""
# use the label of the DVD/CD or else use empty.log
# this is required for udev events where there is no media available
# such as ejecting the drive
if [ -z "$ID_FS_LABEL" ]; then
LOGFILE="empty.log"
else
if [ -n "$ID_FS_LABEL" ]; then
LOGFILE=${ID_FS_LABEL}".log"
elif [[ -n "$ID_CDROM_MEDIA_TRACK_COUNT_AUDIO" && $(which abcde-musicbrainz-tool) ]]; then
LOGFILE=$(abcde-musicbrainz-tool --device "$DEVNAME" | cut -f1 -d ' ')".log"
elif [[ -n "$ID_CDROM_MEDIA_TRACK_COUNT_AUDIO" && $(which cd-discid) ]]; then
LOGFILE=$(cd-discid "$DEVNAME" | cut -f1 -d ' ')".log"
else
LOGFILE="empty.log"
fi
# Set full logfile path