From bb8624bb97135e3af222b29b9464fc6522ab64a3 Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Mon, 10 Dec 2012 21:03:11 -0800 Subject: #13 Recheck bitrate when starting to download the file --- subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java index 9369847e..c7d5f542 100644 --- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java +++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java @@ -67,7 +67,7 @@ public class DownloadFile { saveFile = FileUtil.getSongFile(context, song); bitRate = Util.getMaxBitrate(context); partialFile = new File(saveFile.getParent(), FileUtil.getBaseName(saveFile.getName()) + - "." + bitRate + ".partial." + FileUtil.getExtension(saveFile.getName())); + ".partial." + FileUtil.getExtension(saveFile.getName())); completeFile = new File(saveFile.getParent(), FileUtil.getBaseName(saveFile.getName()) + ".complete." + FileUtil.getExtension(saveFile.getName())); mediaStoreService = new MediaStoreService(context); @@ -81,6 +81,7 @@ public class DownloadFile { * Returns the effective bit rate. */ public int getBitRate() { + bitRate = Util.getMaxBitrate(context); if (bitRate > 0) { return bitRate; } -- cgit v1.2.3