mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-27 07:44:20 +02:00
@@ -171,6 +171,10 @@ public class TumblrRipper extends AlbumRipper {
|
|||||||
HttpStatusException status = (HttpStatusException)cause;
|
HttpStatusException status = (HttpStatusException)cause;
|
||||||
if (status.getStatusCode() == HttpURLConnection.HTTP_UNAUTHORIZED && !useDefaultApiKey) {
|
if (status.getStatusCode() == HttpURLConnection.HTTP_UNAUTHORIZED && !useDefaultApiKey) {
|
||||||
retry = true;
|
retry = true;
|
||||||
|
} else if (status.getStatusCode() == 404) {
|
||||||
|
LOGGER.error("No user or album found!");
|
||||||
|
sendUpdate(STATUS.NO_ALBUM_OR_USER, "Album or user doesn't exist!");
|
||||||
|
break;
|
||||||
} else if (status.getStatusCode() == 429) {
|
} else if (status.getStatusCode() == 429) {
|
||||||
LOGGER.error("Tumblr rate limit has been exceeded");
|
LOGGER.error("Tumblr rate limit has been exceeded");
|
||||||
sendUpdate(STATUS.DOWNLOAD_ERRORED,"Tumblr rate limit has been exceeded");
|
sendUpdate(STATUS.DOWNLOAD_ERRORED,"Tumblr rate limit has been exceeded");
|
||||||
|
@@ -1404,6 +1404,17 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
case TOTAL_BYTES:
|
case TOTAL_BYTES:
|
||||||
// Update total bytes
|
// Update total bytes
|
||||||
break;
|
break;
|
||||||
|
case NO_ALBUM_OR_USER:
|
||||||
|
if (LOGGER.isEnabledFor(Level.ERROR)) {
|
||||||
|
appendLog((String) msg.getObject(), Color.RED);
|
||||||
|
}
|
||||||
|
stopButton.setEnabled(false);
|
||||||
|
statusProgress.setValue(0);
|
||||||
|
statusProgress.setVisible(false);
|
||||||
|
openButton.setVisible(false);
|
||||||
|
pack();
|
||||||
|
statusWithColor("Error: " + msg.getObject(), Color.RED);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -15,7 +15,8 @@ public class RipStatusMessage {
|
|||||||
DOWNLOAD_WARN("Download problem"),
|
DOWNLOAD_WARN("Download problem"),
|
||||||
TOTAL_BYTES("Total bytes"),
|
TOTAL_BYTES("Total bytes"),
|
||||||
COMPLETED_BYTES("Completed bytes"),
|
COMPLETED_BYTES("Completed bytes"),
|
||||||
RIP_ERRORED("Rip Errored");
|
RIP_ERRORED("Rip Errored"),
|
||||||
|
NO_ALBUM_OR_USER("No album or user");
|
||||||
|
|
||||||
String value;
|
String value;
|
||||||
STATUS(String value) {
|
STATUS(String value) {
|
||||||
|
Reference in New Issue
Block a user