aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-07-11 22:10:40 -0700
committerScott Jackson <daneren2005@gmail.com>2013-07-11 22:10:40 -0700
commitfd585a4ae94be0d6549d0309cb5ae77ed59dd0ae (patch)
tree593fab943c41965e16fc37ad032c85b222cb78cf /subsonic-android
parent9f7aa3bc5cec9cb697d8cd064c26355d1a0f2038 (diff)
downloaddsub-fd585a4ae94be0d6549d0309cb5ae77ed59dd0ae.tar.gz
dsub-fd585a4ae94be0d6549d0309cb5ae77ed59dd0ae.tar.bz2
dsub-fd585a4ae94be0d6549d0309cb5ae77ed59dd0ae.zip
Don't specify bitRate if set to 0 (unlimited)
Diffstat (limited to 'subsonic-android')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
index a6fb6248..e81c2b95 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -730,7 +730,9 @@ public class RESTMusicService implements MusicService {
StringBuilder builder = new StringBuilder(Util.getRestUrl(context, "hls"));
builder.append("&id=").append(id);
- builder.append("&bitRate=").append(bitRate);
+ if(bitRate > 0) {
+ builder.append("&bitRate=").append(bitRate);
+ }
String url = rewriteUrlWithRedirect(context, builder.toString());
Log.i(TAG, "Using hls URL: " + url);