getInfos::MP3 (ID3v1 only)

This commit is contained in:
Vincent Riquer 2013-03-05 13:34:16 +01:00
parent d2f138da1b
commit 1a17d8985a

25
atom
View File

@ -629,7 +629,30 @@ removeObsoleteFiles() {
}
getInfos::MP3() {
:
# mp3info only supports ID3v1. Information may be incomplete.
infos=$(
mp3info -p '
ALBUM=%l
ARTIST=%a
GENRE=%g
TITLE=%t
TRACKNUM=%n
YEAR=%y' "$sourcepath/$filename" \
| iconv -f $sourceid3charset -t utf-8//TRANSLIT
)
album=$(gettag album)
artist=$(gettag artist)
genre=$(gettag genre)
title=$(gettag title)
tracknum=$(gettag tracknum)
year=$(gettag year)
[ -n "$album" \
-o -n "$artist" \
-o -n "$genre" \
-o -n "$title" \
-o -n "$tracknum" \
-o -n "$year" ] \
|| return 1
}
getInfos::Ogg() {