aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/Main.java
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-01-15 12:35:53 -0800
committerPinapelz <yukais@pinapelz.com>2024-01-15 12:35:53 -0800
commit1fdba53215b911986f904618e0ced39a5bb14c95 (patch)
tree0a2b2d3bc355d0991f2d1a525b636f801072290b /src/main/java/Main.java
parent19319594837b2d4c0cf9b7524386131016ce4743 (diff)
fix: jaudiotagger unable to tag non-alphanum files
- fixed by temporarily removing alphanum chara from filename - renamed at final output
Diffstat (limited to 'src/main/java/Main.java')
-rw-r--r--src/main/java/Main.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/Main.java b/src/main/java/Main.java
index bc85b9f..7474de4 100644
--- a/src/main/java/Main.java
+++ b/src/main/java/Main.java
@@ -226,6 +226,10 @@ public class Main extends JFrame {
startButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
+ FileUtility fileUtility = new FileUtility();
+ fileUtility.deleteALlFileOfType(System.getProperty("user.dir"), "webm");
+ fileUtility.deleteALlFileOfType(System.getProperty("user.dir"), "json");
+ fileUtility.deleteALlFileOfType(System.getProperty("user.dir"), "mp3");
if (readyState == false) {
outputArea.setText(outputArea.getText() + "\n" + "txt path has not been set. Launching chooserPane");
System.out.println(".txt path has not been set. Launching chooserPane");
@@ -246,6 +250,8 @@ public class Main extends JFrame {
FileWriter fw = new FileWriter(file);
fw.write(textPath);
fw.close();
+
+
System.out.println("Ready to begin downloading. Press the button");
}
} catch (Exception ex) {
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage