I got java.io.CharConversionException at
net.sourceforge.subsonic.controller.M3UController.java.
I changed the file for test.
Then I got a M3U list.
- Code: Select all
private void createClientSidePlaylist(ServletOutputStream out, Player player, String url) throws Exception {
out.println("#EXTM3U");
for (MusicFile musicFile : player.getPlaylist().getFiles()) {
MusicFile.MetaData metaData = musicFile.getMetaData();
Integer duration = metaData.getDuration();
if (duration == null) {
duration = -1;
}
try { // add
out.println("#EXTINF:" + duration + "," + metaData.getArtist() + " - " + metaData.getTitle());
} catch(java.io.CharConversionException e) { // add
out.println("#EXTINF:" + duration + "," + "No Artist" + " - " + "No Title"); // add
} // add
out.println(url + "player=" + player.getId() + "&pathUtf8Hex=" + StringUtil.utf8HexEncode(musicFile.getPath()) + "&suffix=." + transcodingService.getSuffix(player, musicFile));
}
}
}