diff options
Diffstat (limited to 'scripts/music/tag-bulk.sh')
| -rwxr-xr-x | scripts/music/tag-bulk.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/music/tag-bulk.sh b/scripts/music/tag-bulk.sh new file mode 100755 index 0000000..bd93205 --- /dev/null +++ b/scripts/music/tag-bulk.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash + +artist=$1; +album=$2; + +ext=${3:-'opus'}; + +file=${4:-'taginfo'}; + +total=$(cat $file | wc -l); + +cat $file | while read n song; do + song_file="$song.$ext"; + if [[ -f "$song_file" ]]; then + ~/scripts/music/tag.sh \ + -a "$artist" \ + -A "$album" \ + -t "$song" \ + -n "$n" \ + -N "$total" \ + "$song_file"; + else + echo "File $song_file not found"; + fi; +done; + |
