From 19051a5c10ad5ed3a0eeefffecc559de3901bb55 Mon Sep 17 00:00:00 2001 From: krizleebear <8003499+krizleebear@users.noreply.github.com> Date: Fri, 26 Aug 2022 16:12:02 +0200 Subject: [PATCH] fixed TempFile.close. Added note that iTunes successor Apple Music doesn't automatically export library XML. --- src/de/christianleberfinger/melodies2go/Melodies2Go.java | 4 +++- src/de/christianleberfinger/melodies2go/TempFile.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/de/christianleberfinger/melodies2go/Melodies2Go.java b/src/de/christianleberfinger/melodies2go/Melodies2Go.java index ea1fa4d..9736d2f 100644 --- a/src/de/christianleberfinger/melodies2go/Melodies2Go.java +++ b/src/de/christianleberfinger/melodies2go/Melodies2Go.java @@ -168,7 +168,9 @@ public static File findiTunesLibrary() throws FileNotFoundException } } - throw new FileNotFoundException("iTunes lib wasn't found in " + homeDir); + throw new FileNotFoundException("iTunes lib wasn't found in " + homeDir + ". " + + "Note: Apple Music doesn't automatically export the library as XML file. " + + "You have to do so manually."); } diff --git a/src/de/christianleberfinger/melodies2go/TempFile.java b/src/de/christianleberfinger/melodies2go/TempFile.java index 9c0b29c..b2cd262 100644 --- a/src/de/christianleberfinger/melodies2go/TempFile.java +++ b/src/de/christianleberfinger/melodies2go/TempFile.java @@ -38,6 +38,6 @@ public void renameToOriginal() throws IOException @Override public void close() throws IOException { - FileUtils.forceDelete(this); + FileUtils.deleteQuietly(this); } }