Added config option to allow for using subdirs with the reddit ripper

This commit is contained in:
cyian-1756 2018-08-22 07:28:29 -04:00
parent e8fbe4955f
commit 573254a7bb

View File

@ -225,13 +225,14 @@ public class RedditRipper extends AlbumRipper {
} catch (MalformedURLException e) { } catch (MalformedURLException e) {
return; return;
} }
String subdirectory = ""; String subdirectory = "";
if (Utils.getConfigBoolean("album_titles.save", true)) { if (Utils.getConfigBoolean("reddit.use_sub_dirs", true)) {
subdirectory = title; if (Utils.getConfigBoolean("album_titles.save", true)) {
title = "-" + title + "-"; subdirectory = title;
} else { title = "-" + title + "-";
title = ""; } else {
title = "";
}
} }
List<URL> urls = RipUtils.getFilesFromURL(originalURL); List<URL> urls = RipUtils.getFilesFromURL(originalURL);