Browse Source

Check more tags including some from Musicbrainz

master
Xavier Gendre 4 months ago
parent
commit
7c87717405
1 changed files with 56 additions and 0 deletions
  1. +56
    -0
      zik_validator

+ 56
- 0
zik_validator View File

@@ -154,6 +154,14 @@ check_file() {
-p '$TrackTotal' \
-p '$PictureDescription' \
-p '$PictureType' \
-p '$Discid' \
-p '$Artistsort' \
-p '$Albumartistsort' \
-p '$MusicbrainzAlbumid' \
-p '$MusicbrainzArtistid' \
-p '$MusicbrainzAlbumartistid' \
-p '$MusicbrainzDiscid' \
-p '$MusicbrainzTrackid' \
"${file_path}" \
2> "${EXIFTOOL_ERROR_FILE}")"

@@ -175,6 +183,14 @@ check_file() {
local -r exif_track_total="${tags[14]}"
local -r exif_picture_description="${tags[15]}"
local -r exif_picture_type="${tags[16]}"
local -r exif_disc_id="${tags[17]}"
local -r exif_artist_sort="${tags[18]}"
local -r exif_album_artist_sort="${tags[19]}"
local -r exif_mb_album_id="${tags[20]}"
local -r exif_mb_artist_id="${tags[21]}"
local -r exif_mb_album_artist_id="${tags[22]}"
local -r exif_mb_disc_id="${tags[23]}"
local -r exif_mb_track_id="${tags[24]}"

# Manage exiftool error messages
if [[ -s "${EXIFTOOL_ERROR_FILE}" ]]; then
@@ -227,6 +243,46 @@ check_file() {
zik_warn "embedded picture is not front cover for file \"${file_path}\""
fi

# Check disc identifier
if [[ "${exif_disc_id}" != "-" ]]; then
zik_warn "disc identifier is set to \"${exif_disc_id}\" for file \"${file_path}\""
fi

# Check artist sort tag
if [[ "${exif_artist_sort}" != "-" ]]; then
zik_warn "tag Artistsort is set to \"${exif_artist_sort}\" for file \"${file_path}\""
fi

# Check album artist sort tag
if [[ "${exif_album_artist_sort}" != "-" ]]; then
zik_warn "tag Albumartistsort is set to \"${exif_album_artist_sort}\" for file \"${file_path}\""
fi

# Check Musicbrainz album identifier
if [[ "${exif_mb_album_id}" != "-" ]]; then
zik_warn "Musicbrainz album identifier is set to \"${exif_mb_album_id}\" for file \"${file_path}\""
fi

# Check Musicbrainz artist identifier
if [[ "${exif_mb_artist_id}" != "-" ]]; then
zik_warn "Musicbrainz artist identifier is set to \"${exif_mb_artist_id}\" for file \"${file_path}\""
fi

# Check Musicbrainz album artist identifier
if [[ "${exif_mb_album_artist_id}" != "-" ]]; then
zik_warn "Musicbrainz album artist identifier is set to \"${exif_mb_album_artist_id}\" for file \"${file_path}\""
fi

# Check Musicbrainz disc identifier
if [[ "${exif_mb_disc_id}" != "-" ]]; then
zik_warn "Musicbrainz disc identifier is set to \"${exif_mb_disc_id}\" for file \"${file_path}\""
fi

# Check Musicbrainz track identifier
if [[ "${exif_mb_track_id}" != "-" ]]; then
zik_warn "Musicbrainz track identifier is set to \"${exif_mb_track_id}\" for file \"${file_path}\""
fi

# Specific file type checks
case "${exif_file_type}" in
FLAC)


Loading…
Cancel
Save