From 2a0f3c7fcad47a0ba46ff28139ed35d6ebc33de7 Mon Sep 17 00:00:00 2001 From: Alexandre Date: Fri, 20 Apr 2018 13:55:58 +0200 Subject: [PATCH] Get result of update --- pom.xml | 2 +- src/main/java/com/github/madeindjs/feedID3/MyMp3File.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 51e287f..5d0905d 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.github.madeindjs feedID3 - 0.1.1 + 0.1.2 feedID3 diff --git a/src/main/java/com/github/madeindjs/feedID3/MyMp3File.java b/src/main/java/com/github/madeindjs/feedID3/MyMp3File.java index 4d8cb12..2c2fef9 100644 --- a/src/main/java/com/github/madeindjs/feedID3/MyMp3File.java +++ b/src/main/java/com/github/madeindjs/feedID3/MyMp3File.java @@ -88,7 +88,7 @@ public void setNewID3(ID3v24Tag newID3) { * @throws IOException * @throws NotSupportedException */ - public void update() throws IOException, NotSupportedException { + public boolean update() throws IOException, NotSupportedException { // this.setId3v2Tag(newID3); this.setId3v1Tag(newID3); this.currentID3 = newID3; @@ -98,7 +98,7 @@ public void update() throws IOException, NotSupportedException { File retag = new File(getRetagFilename()); origin.delete(); - retag.renameTo(origin); + return retag.renameTo(origin); } private String getRetagFilename() {