aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2014-02-26 14:39:31 -0800
committerScott Jackson <daneren2005@gmail.com>2014-02-26 14:39:31 -0800
commit43abbff91ac4ed65476d245ff4be929d0aff6149 (patch)
tree7bf12b5eed16aafab7fb04500d14304ab23e95c4
parent43521d6f328d91d6850618d35cd3b4a4eae695cc (diff)
downloaddsub-43abbff91ac4ed65476d245ff4be929d0aff6149.tar.gz
dsub-43abbff91ac4ed65476d245ff4be929d0aff6149.tar.bz2
dsub-43abbff91ac4ed65476d245ff4be929d0aff6149.zip
Fix sync saving playlist as name of server
-rw-r--r--src/github/daneren2005/dsub/service/CachedMusicService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/CachedMusicService.java b/src/github/daneren2005/dsub/service/CachedMusicService.java
index e240c043..a45f2639 100644
--- a/src/github/daneren2005/dsub/service/CachedMusicService.java
+++ b/src/github/daneren2005/dsub/service/CachedMusicService.java
@@ -196,7 +196,7 @@ public class CachedMusicService implements MusicService {
dir = musicService.getPlaylist(refresh, id, name, context, progressListener);
FileUtil.serialize(context, dir, getCacheName(context, "playlist", id));
- File playlistFile = FileUtil.getPlaylistFile(context, Util.getServerName(context, musicService.getInstance(context)), name);
+ File playlistFile = FileUtil.getPlaylistFile(context, Util.getServerName(context, musicService.getInstance(context)), dir.getName());
if(cachedPlaylist == null || !playlistFile.exists() || !cachedPlaylist.getChildren().equals(dir.getChildren())) {
FileUtil.writePlaylistFile(context, playlistFile, dir);
}