public String getContentType() { String content_type = null; if (id3v2 != null) { AbstractID3v2Frame frame = getFrame(FRAME_CONTENT_TYPE); if (frame != null) { FrameBodyTCON frame_body = (FrameBodyTCON) frame.getBody(); if (frame_body != null) { content_type = frame_body.getText(); } } } return content_type; }
public String getGenre() { String genre = null; if (id3v2 != null) { AbstractID3v2Frame frame = getFrame(FRAME_GENRE); if (frame != null) { FrameBodyTCON frame_body = (FrameBodyTCON) frame.getBody(); if (frame_body != null) { genre = frame_body.getText(); } } if (StringUtil.isValid(genre)) return genre; } if (id3v1 != null) { genre = getFirstValue(id3v1.getGenre()); } return genre; }