diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/github/daneren2005/dsub/service/DLNAController.java | 2 | ||||
-rw-r--r-- | src/github/daneren2005/dsub/service/RESTMusicService.java | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/github/daneren2005/dsub/service/DLNAController.java b/src/github/daneren2005/dsub/service/DLNAController.java index 219038ad..4719a71f 100644 --- a/src/github/daneren2005/dsub/service/DLNAController.java +++ b/src/github/daneren2005/dsub/service/DLNAController.java @@ -131,7 +131,7 @@ public class DLNAController extends RemoteController { Map<String, StateVariableValue> m = genaSubscription.getCurrentValues();
try {
LastChange lastChange = new LastChange(new AVTransportLastChangeParser(), m.get("LastChange").toString());
- if (playing || lastChange.getEventedValue(0, AVTransportVariable.TransportState.class) == null) {
+ if (lastChange.getEventedValue(0, AVTransportVariable.TransportState.class) == null) {
return;
}
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 |