Song: add isDownloaded() method.

This commit is contained in:
Nekojimi 2022-04-19 23:42:48 +01:00
parent 983b4b0123
commit 76921f6855
1 changed files with 5 additions and 1 deletions

View File

@ -75,6 +75,11 @@ public class Song
return song; return song;
} }
public boolean isDownloaded()
{
return (location != null && location.exists() && location.canRead());
}
public String getTitle() public String getTitle()
{ {
return title; return title;
@ -191,5 +196,4 @@ public class Song
return formats.get(0); return formats.get(0);
} }
} }