Is this a bug or intented behaviour :
I create a MP3File (allow both)
File has only ID3v1 data.
MP3File.getTitle (and other get methods) return empty
String
Maybe this in intented behaviour, but I suspect it's a bug.
This code would return the title correct (as I think
it's correct):
public String getTitle() throws ID3v2FormatException {
String str = new String("");
if (allow(ID3V2)) {
str = id3v2.getFrameDataString(ID3v2Frames.TITLE);
if (str.trim().length() == 0) {
if (allow(ID3V1)) {
str = id3v1.getTitle();
}
}
} else if (allow(ID3V1)) {
str = id3v1.getTitle();
}
return str;
}
Logged In: NO
The problem arises on opening a file in 'BOTH_TAGS' mode,
when the file really only contains a v1 tag. We either need to
add some detection of v1 - v2 tags when opening the file, or
run the fix as suggested, for each v1 getter method.