mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-17 03:14:03 +02:00
Pass skip status to the UI log
This commit is contained in:
@@ -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)) {
|
||||
|
@@ -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)) {
|
||||
|
@@ -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)) {
|
||||
|
@@ -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));
|
||||
|
@@ -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)) {
|
||||
|
@@ -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"),
|
||||
|
Reference in New Issue
Block a user