Debug.debug();
Debug.debug("file", src);
File dst = new File(dstFolder, src.getName());
MusicMetadataSet src_set = new MyID3().read(src);
if (src_set == null)
{
System.out.println("No id3 metadata found.");
continue;
}
Debug.debug("src_set", src_set); // dump all info.
Debug.debug("src_set", src_set.merged.getArtist());
Debug.debug("src_set", src_set.merged.getAlbum());
Debug.debug("src_set", src_set.merged.getSongTitle());
String id3v1_artist = src_set.id3v1Raw.values.getArtist();
String id3v2_artist = src_set.id3v2Raw.values.getArtist();
byte id3v1_tag_bytes[] = src_set.id3v1Raw.bytes; // tag bytes
byte id3v2_tag_bytes[] = src_set.id3v2Raw.bytes; // tag bytes
Vector id3v2_frames = src_set.id3v2Raw.frames; //
if (id3v2_frames.size() > 1)
{
MyID3v2Frame first_frame = (MyID3v2Frame) id3v2_frames.get(0);
String frame_frame_id = first_frame.frameID;
byte frame_frame_bytes[] = first_frame.dataBytes;
}
new MyID3().write(src, dst, src_set, src_set.merged);
if (dst.exists())
{
MusicMetadataSet dst_set = new MyID3().read(dst);
Debug.debug("dst_set", dst_set);
String src_s = src_set.merged.toString();
String dst_s = dst_set.merged.toString();
if (!src_s.equals(dst_s))