dot

packages and services management
Log | Files | Refs | README

commit ab736ab490ac64e759296b83f521fcf381f6ad47
parent f5bc96b0acd73bb7bf3b470d7fda38a210861780
Author: Josuah Demangeon <mail@josuah.net>
Date:   Fri, 23 Feb 2018 12:03:54 +0100

mv-flac: include the year

Diffstat:
Mbin/mv-flac | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/mv-flac b/bin/mv-flac @@ -28,7 +28,7 @@ n() { case "$1" in (*.flac) ar="$(metaflac --show-tag=ARTIST "$1" | v | s)" - da="$(metaflac --show-tag=DATE "$1" | y | s)" + da="$(metaflac --show-tag=DATE "$1" | y)" al="$(metaflac --show-tag=ALBUM "$1" | v | s)" dn="$(metaflac --show-tag=DISCNUMBER "$1" | v | n | s)" dt="$(metaflac --show-tag=DISCTOTAL "$1" | v | s)" @@ -39,5 +39,5 @@ esac [ "$dn" = "$dt" ] && dn="" || dn="$dn-" -mkdir -p "$ar/$al" -ln "$1" "$ar/$al/$dn$(printf %02d "${tn:-0}")-$ti.flac" +mkdir -p "$ar/$da-$al" +ln "$1" "$ar/$da-$al/$dn$(printf %02d "${tn:-0}")-$ti.flac"