Commit 585c7619 authored by Cédric Marie's avatar Cédric Marie
Browse files

tag-sieve: Remove id3v2 command



Converting MP3 tags from id3v1 to id3v2 is useless.
All tags are set with seta, upt, and uptn commands.
Signed-off-by: default avatarCédric Marie <cedric.marie@openmailbox.org>
parent 0a8505e1
......@@ -42,7 +42,6 @@ print_usage()
printf " set artist, album, and date tags in the first track\n"
printf " upt update title tags from filenames\n"
printf " uptn update track number tags from filenames\n"
printf " id3v2 convert id3v1 tags to id3v2 tags (MP3 files only)\n"
}
print_header()
......@@ -495,34 +494,6 @@ if [ "$command" = "uptn" ]; then
exit 0
fi
# -----------------------------------------------------------------------------
# id3v2 (MP3 only)
# -----------------------------------------------------------------------------
if [ "$command" = "id3v2" ]; then
# MP3 files
if [ "$mp3_files" != "" ]; then
print_header "Convert tags from id3v1 to id3v2"
# Set read-write permission
chmod 644 *.mp3
# Convert tags in all tracks
ls -1 *.mp3 |
{
while read file
do
id3v2 --convert "$file"
done
}
# Set read-only permission
chmod 444 *.mp3
fi
exit 0
fi
# -----------------------------------------------------------------------------
# unknown command
# -----------------------------------------------------------------------------
......
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