diff options
Diffstat (limited to 'subsonic-android/src')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/service/RESTMusicService.java | 4 |
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); |