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:
parent
72b3fa806d
commit
06ff7cd5cb
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue