diff options
Diffstat (limited to 'src/github')
-rw-r--r-- | src/github/daneren2005/dsub/service/RESTMusicService.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/github/daneren2005/dsub/service/RESTMusicService.java b/src/github/daneren2005/dsub/service/RESTMusicService.java index 354cd145..6c4872e9 100644 --- a/src/github/daneren2005/dsub/service/RESTMusicService.java +++ b/src/github/daneren2005/dsub/service/RESTMusicService.java @@ -203,6 +203,18 @@ public class RESTMusicService implements MusicService { return cachedIndexes; } + // If manual refresh, try to start server scan for madsonic servers + if(refresh) { + Reader reader = getReader(context, progressListener, "startRescan", null); + try { + new ErrorParser(context).parse(reader); + } catch(Exception e) { + // Probably not madsonic, don't care + } finally { + Util.close(reader); + } + } + long lastModified = (cachedIndexes == null || refresh) ? 0L : cachedIndexes.getLastModified(); List<String> parameterNames = new ArrayList<String>(); |