tag.deleteField(FieldKey.DISC_NO);
}
}
private void handleGenreFields(Tag tag, Track track) throws FieldDataInvalidException, KeyNotFoundException {
FieldValues genres = track.getTrackData().getGenres();
if (genres != null && !genres.isEmpty()) {
Mp4Tag mp4Tag = (Mp4Tag) tag;
mp4Tag.deleteField(Mp4FieldKey.GENRE);
mp4Tag.deleteField(Mp4FieldKey.GENRE_CUSTOM);
for (int i = 0; i < genres.size(); i++) {
String genre = genres.get(i);
if (!Util.isEmpty(genre)) {
mp4Tag.addField(FieldKey.GENRE, genre);
}
}
}