Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
Signed-off-by: Saptarshi Sarkar <saptarshi.programmer@gmail.com>
  • Loading branch information
SaptarshiSarkar12 committed Oct 22, 2022
1 parent 5c4db05 commit 6d5885a
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Drifty.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@
<runtimeBits>64/32</runtimeBits>
</jre>
<versionInfo>
<fileVersion>1.2.0.0</fileVersion>
<txtFileVersion>1.1.0.0</txtFileVersion>
<fileVersion>1.2.1.0</fileVersion>
<txtFileVersion>1.2.0.0</txtFileVersion>
<fileDescription>Drifty is an open-source interactive File Downloader system built with java.</fileDescription>
<copyright>Copyright © 2022 - 32 Saptarshi Sarkar</copyright>
<productVersion>1.2.0.0</productVersion>
<txtProductVersion>1.1.0.0</txtProductVersion>
<productVersion>1.2.1.0</productVersion>
<txtProductVersion>1.2.0.0</txtProductVersion>
<productName>Drifty</productName>
<companyName></companyName>
<internalName>Drifty CLI</internalName>
Expand Down
Binary file modified Drifty_CLI.exe
Binary file not shown.
Binary file modified out/artifacts/Drifty_CLI_jar/Drifty.jar
Binary file not shown.
Binary file modified out/production/Drifty/Drifty_CLI.class
Binary file not shown.
Binary file modified out/production/Drifty/FileDownloader.class
Binary file not shown.
16 changes: 12 additions & 4 deletions src/Drifty_CLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ public class Drifty_CLI {
*/
public static void main(String[] args) {
logger.log("INFO", "Application Started !");
if (!flag) {
printBanner();
}
initialPrintBanner();
flag = true;
if (args.length > 0){
String URL = args[0];
Expand Down Expand Up @@ -240,7 +238,6 @@ private static void help(){
* This function prints the banner of the application in the console.
*/
private static void printBanner(){
System.out.println("Initializing Drifty ...");
System.out.print("\033[H\033[2J");
System.out.println(ANSI_PURPLE+"===================================================================="+ANSI_RESET);
System.out.println(ANSI_CYAN+" _____ _____ _____ ______ _______ __ __"+ANSI_RESET);
Expand All @@ -251,4 +248,15 @@ private static void printBanner(){
System.out.println(ANSI_CYAN+" |_____/ |_| \\_\\|_____||_| |_| |_| "+ANSI_RESET);
System.out.println(ANSI_PURPLE+"===================================================================="+ANSI_RESET);
}

private static void initialPrintBanner(){
System.out.println("====================================================================");
System.out.println(" _____ _____ _____ ______ _______ __ __");
System.out.println(" | __ \\ | __ \\ |_ _|| ____||__ __|\\ \\ / /");
System.out.println(" | | | || |__) | | | | |__ | | \\ \\_/ /");
System.out.println(" | | | || _ / | | | __| | | \\ / ");
System.out.println(" | |__| || | \\ \\ _| |_ | | | | | | ");
System.out.println(" |_____/ |_| \\_\\|_____||_| |_| |_| ");
System.out.println("====================================================================");
}
}
4 changes: 2 additions & 2 deletions src/FileDownloader.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ public void run() {
yt_dlp.waitFor();
int exitValueOfYt_Dlp = yt_dlp.exitValue();
if (exitValueOfYt_Dlp == 0){
System.out.println("\nSuccessfully downloaded the file!");
System.out.println("Successfully downloaded the file!");
Drifty_CLI.logger.log("INFO", "Successfully downloaded the file!");
} else if (exitValueOfYt_Dlp == 1) {
System.out.println("\nFailed to download the file!");
System.out.println("Failed to download the file!");
Drifty_CLI.logger.log("INFO", "Failed to download the file!");
}

Expand Down

0 comments on commit 6d5885a

Please sign in to comment.