aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-03-13 19:57:45 -0700
committerScott Jackson <daneren2005@gmail.com>2013-03-13 19:57:45 -0700
commit22eef7d99ae73c8a811d55aa37468abdca5cfc19 (patch)
tree801b63a8bf0477f73195f942486620ad950e97ea /subsonic-android/src
parentcaf6f4b4e24c65bc5d905f47c5bb2c53d4e918f4 (diff)
downloaddsub-22eef7d99ae73c8a811d55aa37468abdca5cfc19.tar.gz
dsub-22eef7d99ae73c8a811d55aa37468abdca5cfc19.tar.bz2
dsub-22eef7d99ae73c8a811d55aa37468abdca5cfc19.zip
Older devices don't do transparent encoding apparently
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
index 0fc707a2..0e3df9c8 100644
--- a/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
+++ b/subsonic-android/src/github/daneren2005/dsub/service/DownloadServiceImpl.java
@@ -61,6 +61,7 @@ import android.os.IBinder;
import android.os.PowerManager;
import android.util.Log;
import github.daneren2005.dsub.activity.SubsonicTabActivity;
+import java.net.URLEncoder;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
@@ -944,7 +945,7 @@ public class DownloadServiceImpl extends Service implements DownloadService {
proxy = new StreamProxy(this);
proxy.start();
}
- dataSource = String.format("http://127.0.0.1:%d/%s", proxy.getPort(), dataSource);
+ dataSource = String.format("http://127.0.0.1:%d/%s", proxy.getPort(), URLEncoder.encode(dataSource, Constants.UTF_8));
Log.i(TAG, "Data Source: " + dataSource);
} else if(proxy != null) {
proxy.stop();