1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-26 07:14:38 +02:00

Merge branch 'master' of https://github.com/RipMeApp/ripme.git into hqp

This commit is contained in:
Tushar
2019-01-16 11:50:41 +05:30
2 changed files with 6 additions and 2 deletions

View File

@@ -65,6 +65,10 @@ public class DeviantartRipper extends AbstractJSONRipper {
String u = url.toExternalForm();
if (u.contains("/gallery/")) {
return url;
} else if (u.contains("/favourites")) {
return url;
} else if (u.contains("/favorites")) {
return url;
}
if (!u.endsWith("/gallery/") && !u.endsWith("/gallery")) {

View File

@@ -872,9 +872,9 @@ public final class MainWindow implements Runnable, RipStatusHandler {
LOGGER.error("Error while getting selected path: ", e);
return;
}
try {
BufferedReader br = new BufferedReader(new FileReader(chosenPath));
try (BufferedReader br = new BufferedReader(new FileReader(chosenPath))) {
for (String line = br.readLine(); line != null; line = br.readLine()) {
line = line.trim();
if (line.startsWith("http")) {
MainWindow.addUrlToQueue(line);
} else {