aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src/net/sourceforge/subsonic/androidapp/util
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-07-06 20:36:08 -0700
committerScott Jackson <daneren2005@gmail.com>2012-07-06 20:36:08 -0700
commit28af3222ac09cf1b4118fa1a9f646d6ad9622e9d (patch)
tree1d5df5b4605e7c73f2020ff64c5323bc4f68d419 /subsonic-android/src/net/sourceforge/subsonic/androidapp/util
parentf7c41e5c9799ce3e589db1d4f58c4f83326e9455 (diff)
downloaddsub-28af3222ac09cf1b4118fa1a9f646d6ad9622e9d.tar.gz
dsub-28af3222ac09cf1b4118fa1a9f646d6ad9622e9d.tar.bz2
dsub-28af3222ac09cf1b4118fa1a9f646d6ad9622e9d.zip
Offline playlists
Diffstat (limited to 'subsonic-android/src/net/sourceforge/subsonic/androidapp/util')
-rw-r--r--subsonic-android/src/net/sourceforge/subsonic/androidapp/util/FileUtil.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/FileUtil.java b/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/FileUtil.java
index 6cdd6fb1..88d10d3e 100644
--- a/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/FileUtil.java
+++ b/subsonic-android/src/net/sourceforge/subsonic/androidapp/util/FileUtil.java
@@ -70,6 +70,16 @@ public class FileUtil {
return new File(dir, fileName.toString());
}
+
+ public static File getPlaylistFile(String id) {
+ File playlistDir = getPlaylistDirectory();
+ return new File(playlistDir, id);
+ }
+ public static File getPlaylistDirectory() {
+ File playlistDir = new File(getSubsonicDirectory(), "playlists");
+ ensureDirectoryExistsAndIsReadWritable(playlistDir);
+ return playlistDir;
+ }
public static File getAlbumArtFile(Context context, MusicDirectory.Entry entry) {
File albumDir = getAlbumDirectory(context, entry);