From 2deeb3748c83c10d01500e189a8fed8352b839e8 Mon Sep 17 00:00:00 2001 From: Donald Shan Date: Thu, 18 Aug 2022 17:10:06 -0700 Subject: Add files via upload --- pom.xml | 97 ++++++++++++++++++ src/main/java/org/example/Main.java | 176 +++++++++++++++++++++++++++++++++ src/test/java/org/example/AppTest.java | 20 ++++ yt-dlp.exe | Bin 0 -> 13733484 bytes 4 files changed, 293 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/org/example/Main.java create mode 100644 src/test/java/org/example/AppTest.java create mode 100644 yt-dlp.exe diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..9a69b7c --- /dev/null +++ b/pom.xml @@ -0,0 +1,97 @@ + + + + 4.0.0 + + org.example + YouTubeMp3AutoTag + 1.0-SNAPSHOT + + YouTubeMp3AutoTag + + http://www.example.com + + + UTF-8 + 1.7 + 1.7 + + + + jitpack.io + https://jitpack.io + + + + + junit + junit + 4.11 + test + + + com.mpatric + mp3agic + 0.9.1 + + + commons-io + commons-io + 2.8.0 + + + + org + jaudiotagger + 2.0.3 + + + + + + + + + + maven-clean-plugin + 3.1.0 + + + + maven-resources-plugin + 3.0.2 + + + maven-compiler-plugin + 3.8.0 + + + maven-surefire-plugin + 2.22.1 + + + maven-jar-plugin + 3.0.2 + + + maven-install-plugin + 2.5.2 + + + maven-deploy-plugin + 2.8.2 + + + + maven-site-plugin + 3.7.1 + + + maven-project-info-reports-plugin + 3.0.0 + + + + + diff --git a/src/main/java/org/example/Main.java b/src/main/java/org/example/Main.java new file mode 100644 index 0000000..ee8bd2a --- /dev/null +++ b/src/main/java/org/example/Main.java @@ -0,0 +1,176 @@ +package org.example; +import java.io.*; +import java.net.URL; +import java.util.ArrayList; +import java.util.regex.Matcher; +import org.jaudiotagger.audio.AudioFile; +import org.jaudiotagger.audio.AudioFileIO; +import org.jaudiotagger.tag.FieldKey; +import org.jaudiotagger.tag.Tag; +import org.jaudiotagger.tag.datatype.Artwork; + +import java.util.regex.Pattern; + +public class Main { + + public static void main(String[] args) { + ArrayList songs = readFile("songs.txt"); + for(int i = 0;i readFile(String fileName) { + ArrayList lines = new ArrayList(); + try { + FileReader fr = new FileReader(fileName); + BufferedReader br = new BufferedReader(fr); + String line; + while ((line = br.readLine()) != null) { + lines.add(line); + } + br.close(); + } catch (Exception e) { + e.printStackTrace(); + } + return lines; + } + + +} diff --git a/src/test/java/org/example/AppTest.java b/src/test/java/org/example/AppTest.java new file mode 100644 index 0000000..9a3da2b --- /dev/null +++ b/src/test/java/org/example/AppTest.java @@ -0,0 +1,20 @@ +package org.example; + +import static org.junit.Assert.assertTrue; + +import org.junit.Test; + +/** + * Unit test for simple App. + */ +public class AppTest +{ + /** + * Rigorous Test :-) + */ + @Test + public void shouldAnswerWithTrue() + { + assertTrue( true ); + } +} diff --git a/yt-dlp.exe b/yt-dlp.exe new file mode 100644 index 0000000..c559791 Binary files /dev/null and b/yt-dlp.exe differ -- cgit v1.2.3