summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/tag6
1 files changed, 5 insertions, 1 deletions
diff --git a/.local/bin/tag b/.local/bin/tag
index 8462b99..11a5b8e 100755
--- a/.local/bin/tag
+++ b/.local/bin/tag
@@ -54,7 +54,11 @@ Total=$total
Date=$date
Genre=$genre
Comment=$comment" | opustags -i -S "$file" ;;
- *.mp3) eyeD3 -Q --remove-all -a "$artist" -A "$album" -t "$title" -n "$track" -N "$total" -Y "$date" "$file" ;;
+ *.mp3) eyeD3 -Q --remove-all -a "$artist" -t "$title" -A "$album" -n "$track" \
+ ${total:+-N "$total"} \
+ ${date:+-Y "$date"} \
+ ${genre:+-G "$genre"} \
+ ${comment:+-c "$comment"} "$file" ;;
*.flac) echo "TITLE=$title
ARTIST=$artist
ALBUM=$album