Skip to content

Commit

Permalink
fixed TempFile.close.
Browse files Browse the repository at this point in the history
Added note that iTunes successor Apple Music doesn't automatically export library XML.
  • Loading branch information
krizleebear committed Aug 26, 2022
1 parent 8e4ea4b commit 19051a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/de/christianleberfinger/melodies2go/Melodies2Go.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}


Expand Down
2 changes: 1 addition & 1 deletion src/de/christianleberfinger/melodies2go/TempFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ public void renameToOriginal() throws IOException

@Override
public void close() throws IOException {
FileUtils.forceDelete(this);
FileUtils.deleteQuietly(this);
}
}

0 comments on commit 19051a5

Please sign in to comment.