aboutsummaryrefslogtreecommitdiff
path: root/src/github
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2015-01-25 12:57:32 -0800
committerScott Jackson <daneren2005@gmail.com>2015-01-25 12:57:32 -0800
commita7825eb5c59ec9fd6e1591b067a9d0a66a30b5d1 (patch)
treecc3b1d8a7a55ab00891a1e039932ce01944629c3 /src/github
parent46cc8e0d52946053babff601618b8f2b44a85b31 (diff)
downloaddsub-a7825eb5c59ec9fd6e1591b067a9d0a66a30b5d1.tar.gz
dsub-a7825eb5c59ec9fd6e1591b067a9d0a66a30b5d1.tar.bz2
dsub-a7825eb5c59ec9fd6e1591b067a9d0a66a30b5d1.zip
Rewrite cover art url as well
Diffstat (limited to 'src/github')
-rw-r--r--src/github/daneren2005/dsub/service/RESTMusicService.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java
index bd746165..c7301cfd 100644
--- a/src/github/daneren2005/dsub/service/RESTMusicService.java
+++ b/src/github/daneren2005/dsub/service/RESTMusicService.java
@@ -601,7 +601,9 @@ public class RESTMusicService implements MusicService {
public String getCoverArtUrl(Context context, MusicDirectory.Entry entry) throws Exception {
StringBuilder builder = new StringBuilder(getRestUrl(context, "getCoverArt"));
builder.append("&id=").append(entry.getCoverArt());
- return builder.toString();
+ String url = builder.toString();
+ url = rewriteUrlWithRedirect(context, url);
+ return url;
}
@Override