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:
@@ -343,6 +343,7 @@ public abstract class AbstractHTMLRipper extends AbstractRipper {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (shouldIgnoreURL(url)) {
|
if (shouldIgnoreURL(url)) {
|
||||||
|
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Utils.getConfigBoolean("urls_only.save", false)) {
|
if (Utils.getConfigBoolean("urls_only.save", false)) {
|
||||||
|
@@ -161,6 +161,7 @@ public abstract class AbstractJSONRipper extends AbstractRipper {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (shouldIgnoreURL(url)) {
|
if (shouldIgnoreURL(url)) {
|
||||||
|
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Utils.getConfigBoolean("urls_only.save", false)) {
|
if (Utils.getConfigBoolean("urls_only.save", false)) {
|
||||||
|
@@ -71,6 +71,7 @@ public abstract class AlbumRipper extends AbstractRipper {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (shouldIgnoreURL(url)) {
|
if (shouldIgnoreURL(url)) {
|
||||||
|
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Utils.getConfigBoolean("urls_only.save", false)) {
|
if (Utils.getConfigBoolean("urls_only.save", false)) {
|
||||||
|
@@ -69,6 +69,7 @@ public abstract class VideoRipper extends AbstractRipper {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (shouldIgnoreURL(url)) {
|
if (shouldIgnoreURL(url)) {
|
||||||
|
sendUpdate(STATUS.DOWNLOAD_SKIP, "Skipping " + url.toExternalForm() + " - ignored extension");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
threadPool.addThread(new DownloadVideoThread(url, saveAs, this));
|
threadPool.addThread(new DownloadVideoThread(url, saveAs, this));
|
||||||
|
@@ -1435,6 +1435,11 @@ public final class MainWindow implements Runnable, RipStatusHandler {
|
|||||||
appendLog((String) msg.getObject(), Color.ORANGE);
|
appendLog((String) msg.getObject(), Color.ORANGE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case DOWNLOAD_SKIP:
|
||||||
|
if (LOGGER.isEnabled(Level.INFO)) {
|
||||||
|
appendLog((String) msg.getObject(), Color.YELLOW);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
case RIP_ERRORED:
|
case RIP_ERRORED:
|
||||||
if (LOGGER.isEnabled(Level.ERROR)) {
|
if (LOGGER.isEnabled(Level.ERROR)) {
|
||||||
|
@@ -13,6 +13,7 @@ public class RipStatusMessage {
|
|||||||
DOWNLOAD_COMPLETE_HISTORY("Download Complete History"),
|
DOWNLOAD_COMPLETE_HISTORY("Download Complete History"),
|
||||||
RIP_COMPLETE("Rip Complete"),
|
RIP_COMPLETE("Rip Complete"),
|
||||||
DOWNLOAD_WARN("Download problem"),
|
DOWNLOAD_WARN("Download problem"),
|
||||||
|
DOWNLOAD_SKIP("Download Skipped"),
|
||||||
TOTAL_BYTES("Total bytes"),
|
TOTAL_BYTES("Total bytes"),
|
||||||
COMPLETED_BYTES("Completed bytes"),
|
COMPLETED_BYTES("Completed bytes"),
|
||||||
RIP_ERRORED("Rip Errored"),
|
RIP_ERRORED("Rip Errored"),
|
||||||
|
Reference in New Issue
Block a user