aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2012-12-10 21:03:11 -0800
committerScott Jackson <daneren2005@gmail.com>2012-12-10 21:03:11 -0800
commitbb8624bb97135e3af222b29b9464fc6522ab64a3 (patch)
tree652a99cbef02b49261042bf945078446087070b6
parent82bb36d1f507096138156192d81c2fae70a38efc (diff)
downloaddsub-bb8624bb97135e3af222b29b9464fc6522ab64a3.tar.gz
dsub-bb8624bb97135e3af222b29b9464fc6522ab64a3.tar.bz2
dsub-bb8624bb97135e3af222b29b9464fc6522ab64a3.zip
#13 Recheck bitrate when starting to download the file
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadFile.java3
1 files changed, 2 insertions, 1 deletions
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;
}