diff options
author | Tom Briden <tom.briden@veritape.com> | 2013-06-05 08:30:25 +0100 |
---|---|---|
committer | Tom Briden <tom.briden@veritape.com> | 2013-06-05 08:30:25 +0100 |
commit | 240f7521c82f693863b3ba398d2a75a2d3b67399 (patch) | |
tree | b51d23dfaff888cef3f946169006e3d530cdcf50 /subsonic-android/src | |
parent | 96d6c306e75533423137a31b3cff378f7f916d8d (diff) | |
download | dsub-240f7521c82f693863b3ba398d2a75a2d3b67399.tar.gz dsub-240f7521c82f693863b3ba398d2a75a2d3b67399.tar.bz2 dsub-240f7521c82f693863b3ba398d2a75a2d3b67399.zip |
open the offline scrobbles file in append mode, d'oh
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java | 2 | ||||
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java index 83c7f960..b8050bb2 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java @@ -446,7 +446,7 @@ public class OfflineMusicService extends RESTMusicService { scrobbleSearchCriteria = scrobbleSearchCriteria.replace(".complete", "").replace(".partial", ""); scrobbleSearchCriteria = scrobbleSearchCriteria.replace("/", " ").replace("-", "\\-").replace(".", "\\."); - BufferedWriter bw = new BufferedWriter(new FileWriter(offlineScrobblesFile)); + BufferedWriter bw = new BufferedWriter(new FileWriter(offlineScrobblesFile, true)); bw.write(scrobbleSearchCriteria + "," + System.currentTimeMillis()); bw.newLine(); bw.flush(); diff --git a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java index be0763e7..ce17754a 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -196,7 +196,7 @@ public class RESTMusicService implements MusicService { } catch(Exception e){ Log.e(TAG, e.toString()); - BufferedWriter bw = new BufferedWriter(new FileWriter(offlineScrobblesFile)); + BufferedWriter bw = new BufferedWriter(new FileWriter(offlineScrobblesFile, true)); bw.write(line); bw.newLine(); bw.flush(); |