From 865728068c965e066d0f8971c5b5ba26e12e7dce Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 24 Dec 2020 00:06:27 +0530 Subject: Adds scripts and links scripts and wallpapers --- scripts/music/tag-bulk.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 scripts/music/tag-bulk.sh (limited to 'scripts/music/tag-bulk.sh') 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; + -- cgit v1.3.1