sb.append("\"");
sb.append(NapFileHelper.getShareString(index, file));
sb.append("\" ");
if (file instanceof MP3File) {
MP3File m = (MP3File)file;
// do not calculate md5, send 0 instead
sb.append("0 ");
sb.append(m.length());
sb.append(" ");
sb.append(m.getBitrate());
sb.append(" ");
sb.append(m.getFrequency());
sb.append(" ");
sb.append(m.getPlayingTime());
}
else if (file instanceof VideoFile) {
type = 10300;
// use new share syntax
sb.append(file.length());