Merge pull request #875 from cyian-1756/redditConfigChanges
Added config option to allow for using subdirs with the reddit ripper
This commit is contained in:
commit
f3d827efbe
@ -225,14 +225,15 @@ public class RedditRipper extends AlbumRipper {
|
|||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
String subdirectory = "";
|
String subdirectory = "";
|
||||||
|
if (Utils.getConfigBoolean("reddit.use_sub_dirs", true)) {
|
||||||
if (Utils.getConfigBoolean("album_titles.save", true)) {
|
if (Utils.getConfigBoolean("album_titles.save", true)) {
|
||||||
subdirectory = title;
|
subdirectory = title;
|
||||||
title = "-" + title + "-";
|
title = "-" + title + "-";
|
||||||
} else {
|
} else {
|
||||||
title = "";
|
title = "";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
List<URL> urls = RipUtils.getFilesFromURL(originalURL);
|
List<URL> urls = RipUtils.getFilesFromURL(originalURL);
|
||||||
if (urls.size() == 1) {
|
if (urls.size() == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user