aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Briden <tom.briden@veritape.com>2013-06-05 08:30:25 +0100
committerTom Briden <tom.briden@veritape.com>2013-06-05 08:30:25 +0100
commit240f7521c82f693863b3ba398d2a75a2d3b67399 (patch)
treeb51d23dfaff888cef3f946169006e3d530cdcf50
parent96d6c306e75533423137a31b3cff378f7f916d8d (diff)
downloaddsub-240f7521c82f693863b3ba398d2a75a2d3b67399.tar.gz
dsub-240f7521c82f693863b3ba398d2a75a2d3b67399.tar.bz2
dsub-240f7521c82f693863b3ba398d2a75a2d3b67399.zip
open the offline scrobbles file in append mode, d'oh
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/OfflineMusicService.java2
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java2
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();