return false;
}
public void writeAPEv2Tag(Track track) throws IOException {
TrackData trackData = track.getTrackData();
RandomAccessFile ras = null;
try {
ras = new RandomAccessFile(trackData.getFile(), "rw");
APETag tag = new APETag(ras, true);
setApeTagFieldValue(tag, trackData, FieldKey.ARTIST, APETag.APE_TAG_FIELD_ARTIST);
setApeTagFieldValue(tag, trackData, FieldKey.ALBUM, APETag.APE_TAG_FIELD_ALBUM);
setApeTagFieldValue(tag, trackData, FieldKey.TITLE, APETag.APE_TAG_FIELD_TITLE);
setApeTagFieldValue(tag, trackData, FieldKey.YEAR, APETag.APE_TAG_FIELD_YEAR);
setApeTagFieldValue(tag, trackData, FieldKey.GENRE, APETag.APE_TAG_FIELD_GENRE);
setApeTagFieldValue(tag, trackData, FieldKey.COMMENT, APETag.APE_TAG_FIELD_COMMENT);
setApeTagFieldValue(tag, trackData, FieldKey.TRACK, APETag.APE_TAG_FIELD_TRACK);
setApeTagFieldValue(tag, trackData, FieldKey.ALBUM_ARTIST, "Album Artist");
setCustomApeTagFieldValue(tag, trackData, FieldKey.DISC_NO);
setCustomApeTagFieldValue(tag, trackData, FieldKey.TRACK_TOTAL);
setCustomApeTagFieldValue(tag, trackData, FieldKey.DISC_TOTAL);
setCustomApeTagFieldValue(tag, trackData, FieldKey.RECORD_LABEL);
setCustomApeTagFieldValue(tag, trackData, FieldKey.CATALOG_NO);
setCustomApeTagFieldValue(tag, trackData, FieldKey.RATING);
// TODO review this hardcoded const
tag.SetFieldString("CUESHEET", trackData.getCueSheet());
tag.Save();
track.getTrackData().removeEmptyTagFields();
} finally {
if (ras != null)
ras.close();
}
}