Merge remote-tracking branch 'origin/pr/1023'

master
Andrew DeMaria 6 years ago
commit fe08dd1c94
No known key found for this signature in database
GPG Key ID: 0A3F5E91F8364EDF
  1. 4
      airsonic-main/src/main/java/org/airsonic/player/service/PodcastService.java

@ -693,6 +693,10 @@ public class PodcastService {
File podcastDir = new File(settingsService.getPodcastFolder()); File podcastDir = new File(settingsService.getPodcastFolder());
File channelDir = new File(podcastDir, StringUtil.fileSystemSafe(channel.getTitle())); File channelDir = new File(podcastDir, StringUtil.fileSystemSafe(channel.getTitle()));
if (!podcastDir.canWrite()) {
throw new RuntimeException("The podcasts directory " + podcastDir + " isn't writeable.");
}
if (!channelDir.exists()) { if (!channelDir.exists()) {
boolean ok = channelDir.mkdirs(); boolean ok = channelDir.mkdirs();
if (!ok) { if (!ok) {

Loading…
Cancel
Save