mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-26 15:24:51 +02:00
Merge branch 'master' of https://github.com/RipMeApp/ripme.git into hqp
This commit is contained in:
@@ -65,6 +65,10 @@ public class DeviantartRipper extends AbstractJSONRipper {
|
|||||||
String u = url.toExternalForm();
|
String u = url.toExternalForm();
|
||||||
if (u.contains("/gallery/")) {
|
if (u.contains("/gallery/")) {
|
||||||
return url;
|
return url;
|
||||||
|
} else if (u.contains("/favourites")) {
|
||||||
|
return url;
|
||||||
|
} else if (u.contains("/favorites")) {
|
||||||
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!u.endsWith("/gallery/") && !u.endsWith("/gallery")) {
|
if (!u.endsWith("/gallery/") && !u.endsWith("/gallery")) {
|
||||||
|
@@ -872,9 +872,9 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
LOGGER.error("Error while getting selected path: ", e);
|
LOGGER.error("Error while getting selected path: ", e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try (BufferedReader br = new BufferedReader(new FileReader(chosenPath))) {
|
||||||
BufferedReader br = new BufferedReader(new FileReader(chosenPath));
|
|
||||||
for (String line = br.readLine(); line != null; line = br.readLine()) {
|
for (String line = br.readLine(); line != null; line = br.readLine()) {
|
||||||
|
line = line.trim();
|
||||||
if (line.startsWith("http")) {
|
if (line.startsWith("http")) {
|
||||||
MainWindow.addUrlToQueue(line);
|
MainWindow.addUrlToQueue(line);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user