From fd585a4ae94be0d6549d0309cb5ae77ed59dd0ae Mon Sep 17 00:00:00 2001 From: Scott Jackson Date: Thu, 11 Jul 2013 22:10:40 -0700 Subject: Don't specify bitRate if set to 0 (unlimited) --- .../src/github/daneren2005/dsub/service/RESTMusicService.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'subsonic-android/src') 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); -- cgit v1.2.3