1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-02-19 21:54:50 +01:00

Merge pull request #1862 from tintinhamans/ripsdirectory-fix

Move -l option up to allow setting path for -r/-R
This commit is contained in:
cyian-1756 2021-05-04 18:01:34 +00:00 committed by GitHub
commit f16f2b3961
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,6 +169,12 @@ public class App {
Utils.setConfigBoolean("errors.skip404", true);
}
//Destination directory
if (cl.hasOption('l')) {
// change the default rips directory
Utils.setConfigString("rips.directory", cl.getOptionValue('l'));
}
//Re-rip <i>all</i> previous albums
if (cl.hasOption('r')) {
// Re-rip all via command-line
@ -245,12 +251,6 @@ public class App {
System.exit(-1);
}
//Destination directory
if (cl.hasOption('l')) {
// change the default rips directory
Utils.setConfigString("rips.directory", cl.getOptionValue('l'));
}
//Read URLs from File
if (cl.hasOption('f')) {
String filename = cl.getOptionValue('f');