Commit 2bf79a57 authored by Cédric Marie's avatar Cédric Marie
Browse files

tag-sieve: Check multi-disc in filename (for MP3)



As with FLAC files, check multi-disc in the first MP3 filename, which should
start with "1 - " in that case.
Signed-off-by: default avatarCédric Marie <cedric.marie@openmailbox.org>
parent ef4f6d64
......@@ -3,7 +3,7 @@
# tag-sieve - Clean audio tags
# This file is part of Painted Shell - Shell configuration and scripts.
#
# Written in 2014 by Cédric Marie <cedric.marie@openmailbox.org>
# Written in 2014-2016 by Cédric Marie <cedric.marie@openmailbox.org>
#
# To the extent possible under law, the author(s) have dedicated all copyright
# and related and neighboring rights to this software to the public domain
......@@ -206,7 +206,6 @@ if [ "$command" = "clean" ]; then
tag_license=`grep "^LICENSE=" $tags_filename | tail -n 1`
tag_license=${tag_license#LICENSE=}
# Print album information
printf "\033[7m"
if [ "$multi_artist" = "0" ]; then
......@@ -294,7 +293,7 @@ if [ "$command" = "clean" ]; then
tag_album=${tag_album#*: }
tag_date=`grep "^TYER " $tags_filename`
tag_date=${tag_date#*: }
if grep -q "^TPOS " $tags_filename; then
if [ "${file%% - *}" = "1" ]; then
multi_disc=1
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment