1
0
Fork 0
mirror of https://github.com/airsonic/airsonic.git synced 2025-10-06 03:50:02 +02:00

Removed trim() for filename

It's not the end of the world if the last character before the extension is a space.
This commit is contained in:
Greg Linton 2020-04-06 09:07:01 -04:00 committed by François-Xavier Thomas
parent 72b3fa806d
commit 06ff7cd5cb

View file

@ -658,7 +658,7 @@ public class PodcastService {
File channelDir = getChannelDirectory(channel); File channelDir = getChannelDirectory(channel);
String filename = channel.getTitle() + " - " + episode.getPublishDate().toString() + " - " + episode.getTitle(); String filename = channel.getTitle() + " - " + episode.getPublishDate().toString() + " - " + episode.getTitle();
filename = filename.trim(filename.substring(0, Math.min(filename.length(), 146))); filename = filename.substring(0, Math.min(filename.length(), 146));
filename = StringUtil.fileSystemSafe(filename); filename = StringUtil.fileSystemSafe(filename);
String extension = FilenameUtils.getExtension(filename); String extension = FilenameUtils.getExtension(filename);