Skip to content

Commit

Permalink
v1.2: Sort song files and prevent iteration from breaking when proces…
Browse files Browse the repository at this point in the history
…sing non-mp3 files
  • Loading branch information
Alkisum committed Feb 16, 2023
1 parent d04256a commit 2e1aba6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'

group 'com.alkisum.java.discocleaner'
version '1.1'
version '1.2'
mainClassName = 'com.alkisum.java.main.DiscoCleaner'
sourceCompatibility = 1.9

Expand Down
Binary file added release/DiscoCleaner-1.2.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion src/main/java/com/alkisum/java/utils/Mp3.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,12 @@ static void checkMp3Tag(final File album)
}

// browse song files
Arrays.sort(files);
for (File song : files) {

// check only MP3
if (!song.getName().endsWith(".mp3")) {
break;
continue;
}

// create MP3 file
Expand Down

0 comments on commit 2e1aba6

Please # to comment.