diff --git a/src/main/java/moe/nekojimi/chords/Song.java b/src/main/java/moe/nekojimi/chords/Song.java index 0eb2299..30ffb2c 100644 --- a/src/main/java/moe/nekojimi/chords/Song.java +++ b/src/main/java/moe/nekojimi/chords/Song.java @@ -75,6 +75,11 @@ public class Song return song; } + public boolean isDownloaded() + { + return (location != null && location.exists() && location.canRead()); + } + public String getTitle() { return title; @@ -191,5 +196,4 @@ public class Song return formats.get(0); } - }