Compare commits
2 Commits
dep-omdbap
...
feature-Au
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
985f4b5235 | ||
|
|
d7a66d4800 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@ archive/
|
||||
config
|
||||
temp/
|
||||
test.py
|
||||
*.sh~
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user