Skip to content

Commit

Permalink
Add more information
Browse files Browse the repository at this point in the history
  • Loading branch information
vlOd2 committed May 13, 2023
1 parent cf805af commit 9ac43c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group 'me.vlod'
version '2.5.1'
version '2.5.2'

repositories {
mavenCentral()
Expand Down
6 changes: 6 additions & 0 deletions src/main/java/me/vlod/lightshotscraper/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,12 @@ private void doGenerateCommand(String numberRaw) {
long timeBeforeGen = System.currentTimeMillis();
String outputFolderPath = "";

if (this.app.noDownload) {
LightshotScraper.logger.warn("Image downloading has been disabled!");
LightshotScraper.logger.warn("The following features will not work:");
LightshotScraper.logger.warn("- Discord webhook");
}

if (!this.app.noSaving) {
outputFolderPath = (this.app.outputFolderBase == null ?
"." : this.app.outputFolderBase.trim()) + "/" + timeBeforeGen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,6 @@ public void call(Object... args) {
}

public static void main(String[] args) {
new Thread(instance = new LightshotScraper()).start();
new Thread(instance = new LightshotScraper(), "Lightshot-Main-Thread").start();
}
}

0 comments on commit 9ac43c6

Please sign in to comment.