1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-17 19:26:34 +02:00

Pass skip status to the UI log

This commit is contained in:
jpoulton
2023-11-04 15:45:53 +00:00
committed by soloturn
parent ea8e4cdfea
commit 154cf536ce
6 changed files with 10 additions and 0 deletions

View File

@@ -343,6 +343,7 @@ public abstract class AbstractHTMLRipper extends AbstractRipper {
return false;
}
if (shouldIgnoreURL(url)) {
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
return false;
}
if (Utils.getConfigBoolean("urls_only.save", false)) {

View File

@@ -161,6 +161,7 @@ public abstract class AbstractJSONRipper extends AbstractRipper {
return false;
}
if (shouldIgnoreURL(url)) {
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
return false;
}
if (Utils.getConfigBoolean("urls_only.save", false)) {

View File

@@ -71,6 +71,7 @@ public abstract class AlbumRipper extends AbstractRipper {
return false;
}
if (shouldIgnoreURL(url)) {
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
return false;
}
if (Utils.getConfigBoolean("urls_only.save", false)) {

View File

@@ -69,6 +69,7 @@ public abstract class VideoRipper extends AbstractRipper {
return true;
}
if (shouldIgnoreURL(url)) {
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
return false;
}
threadPool.addThread(new DownloadVideoThread(url, saveAs, this));

View File

@@ -1435,6 +1435,11 @@ public final class MainWindow implements Runnable, RipStatusHandler {
appendLog((String) msg.getObject(), Color.ORANGE);
}
break;
case DOWNLOAD_SKIP:
if (LOGGER.isEnabled(Level.INFO)) {
appendLog((String) msg.getObject(), Color.YELLOW);
}
break;
case RIP_ERRORED:
if (LOGGER.isEnabled(Level.ERROR)) {

View File

@@ -13,6 +13,7 @@ public class RipStatusMessage {
DOWNLOAD_COMPLETE_HISTORY("Download Complete History"),
RIP_COMPLETE("Rip Complete"),
DOWNLOAD_WARN("Download problem"),
DOWNLOAD_SKIP("Download Skipped"),
TOTAL_BYTES("Total bytes"),
COMPLETED_BYTES("Completed bytes"),
RIP_ERRORED("Rip Errored"),